Discussions tagged JSON

Hi all, When exporting large numbers to JSON using the ExportJSON DataWindow method the numbers are converted to scientific notation and precision is lost. For example, a number like 284,932,785.56 gets converted to something like 2.8493E+08 (don't...
Hi everyone, i try to parse a JSON-String with the new functionalitys of PB2019 and get this error message: "Failed to load the JSON data because its root node is not an object" sample code:   string ls_json, ls_returnJSONPackage luo_jsonluo_json...
I get a JSON like : {"data": {"name": "\u9673\u6cf0\u5c71", "coupon": [], "is_active": true, "sex": "male", "birthday": "2019-05-15T16:00:00Z", "mobile_number": "+88696631", "balance": 10}}   name is Chinese What function can help me convert it t...
Upon which JSON parser is PowerBuilder 2019 based? I can then reference which syntax variations are tolerated.   Thank you....
Hi Guru. I can't import a jason file (I extracted the code from the example 'json' which is found in codexchange) I list the steps I take: 1. I export dw data in the (standard) format ls_json = dw_1.Exportjson (true) 2. Import: dw_1.DataO...
Hello All, I have a DW with column names like :Column1, FirstName,LastName when i create the json file using exportJson the Json is generated with names in lowercase  column1,firstname,lastname and that cause a problem when i try to import it in...
I am in the process of converting an existing PowerBuilder application that communicates with a mainframe via an emulator to one using APIs with REST/JSON. I have looked at the examples in the Appeon PowerBuilder 2017 R3 Help and was wondering if the...
Hi everyone I watched a presentation rerun from the Elevate 2018 online - https://bit.ly/2reD3x8 In this clip titled "Demo: New Features of PowerBuilder 2017 R3" I noticed on the presenter's screen the Build number is something later than 1858, whi...
Hi.   One of our customers has provided a web service (Restful API) which returns Json data. They want us to integrate with it to get these data into our application. Is there a way to generate a datawindow from the Json? I guess i need to have ...
Hello community, I am exited with new option to export Datawindow to Json format. Could you please help me to figure out how to achieve the following: 1. Exported field names are different from column names. How to specify/map the Json field names w...
Hi, I am using the JsonGenerator and I am having trouble getting it formatted correctly with my arrays - square brackets are missing This is what I am trying to create {     "userId": "adsf1234",     "dueDate": "2018/02/21",     "items": [ ...
I hope you can help I have the following code which works fine for the first level of fields, how do i get the data for the address1 address2 city and postcode   // json return string is  {   "id": "W2DBZqIkce",   "status": "active", ...
Hi I hope someone can help, I have been reading the example on new REST features with PB2017 R2 - the article states it is using a a service that doesnt use authentication. How would i use a service that requires authentication The one i am ...
Hi,   Here is my code for generating JSON file from datawindow. it shows some issues. The out put should show like below  [ { "postId": 1, "id": 1, "name": "id labore ex et quam laborum", "email": "Eliseo@gardner....
The following JSON string is unsupported in PB2017 R2: { "empId":191, "fname":"Jeannette", "lname":"bertrand", "manager": { "managerid":703, ...
We have several REST Services we call and get result back as a JSON or an XML output.  I have a new request to get back the RAW Bytes Array that it returns. How can I achieve that?  For EG:  We can do a GET for any image on the web like this...
Power Builder 2017 Include treatment json library?   Tanks Elvis C. ...

Find Questions by Tag

.EXE .NET 6.0 .NET Assembly .NET Core 3.1 .NET Core Framework .NET DataStore .NET Std Framework 32-bit 64-bit ADO.NET AEM AI Algorithm Amazon AWS Android Apache API APK App Store App Store (Apple) Appeon Workspace Appeon Xcelerator Plug-in Architecture Array ASE Asynchronous Methods Authentication AutoBuild AutoCompiler Automated Testing Automation AutoScript Azure Barcode Base64 Batch BigData BLOB Branch & Merge Browser Bug Build Button C# C# Class Importer C# Editor C# Model generator Calendar Camera Certificate Chrome Citrix Class Client Client/Server Cloud Cluster Collection COM Command Line Compiler Compression Computed Field Configuration Controls Cookies Cordova Crash Cross-Platform Crosstab CSharpAssembly CSharpObject CSS CSV Cursor Data Database Database Driver Database Painter Database Profile Database Provider DataObject DataSource DataStore DataStore (C#) DataStore (PS) DataType DataWindow DATE DATETIME DB2 Debug Debugger Debugging Deployment Design DLL DO-WHILE Dockable Docker Documentation DOUBLE Download DragDrop Edge Edit Style Editor Elevate Conference Email Embedded SQL Emulator Encoding Encryption Enhancement Request Entity Entity Framework ERP Error Event Event Handler Event Handling Excel Exception Export Expression External Functions F# Field File File Access Filter Firefox Firewall Font FOR-NEXT Foreground Format Function Garbage Collection GeoLocation Git Graph HANA Hash Header HTML/5 HTTP/S HTTPClient Icon IDE Identity IIS IMAPI Import InfoMaker Inheritance Installation Integer IntelliSense Interface Internet Internet Explorer iOS IPA iPad iPhone IWA J# Java JavaScript JBoss JDBC JOIN JSON JSONGenerator JSONParser Kestrel Label Lambda Large File LDAP Library License LINQ Linux OS Load Balancing Localization Localized PBVM Log In Log Out Logging LONG LONGLONG macOS MAPI Maps MDI Memory Memory Leak Menu Merge MessageBox Messagging Method Migration MIME TYPE Mobile Model ModelStore ModelStore (C#) MSOLEDBSQL Multi Threading MVC MySQL n-Tier Namespace NativePDF NVO OAuth ODATA ODBC Office Offline OLE OLEDB Online Open Source OpenAPI OpenSSL Oracle OrcaScript Other Outlook Output Package Parameter Patch PayPal PB Classic PB Native PB.NET PBC PBD PBDOM PBG PBJVM PBL PBNI PBORCA PBVM PBX PDF Performance Permission PFC Picture Pipeline Play Store (Google) Plugin Popup Port POST PostgreSQL PowerBuilder PowerBuilder (Appeon) PowerBuilder (SAP) PowerBuilder Compiler PowerBuilder Runtime PowerClient PowerScript (PS) PowerScript IDE PowerScript Migrator PowerServer PowerServer Mobile PowerServer Toolkit PowerServer Web PowerServerLabel Print Properties Proxy Publish PULL PUSH Query Regression Release Renew Resize Response REST Retrieve RibbonBar RibbonBar Builder Rich Text Roadmap RPC Runtime Packager SaaS Scaffolding Script SDI SDK Security Server Service Session Single Sign-on Size SMTP SMTPClient SnapDevelop SOAP Sort Source Code Speech Recognition SQL SQL Anywhere SQL Server SqlBuilder SqlExecutor SQLite SqlModelMapper Storage Stored Procedure Subscription SVN Swagger Syntax TabbedBar TabbedView Tablet TabPage Target TE Control Testing Text TFS Theme TIME Timer TLS/SSL Tomcat TortoiseGit TortoiseSVN Transaction Transparency Trial Trigger TRY-CATCH TX Control Type UI ULONG UltraLite Uninstall Unit Test Unit Testing UNIX OS Update Upgrade Upload URL User Center User Object UWP Validation VARCHAR Variable Versioning Visual Studio Visual Studio Code VM Voice Warning WCF Web API Web Extensions Web Service WebBrowser WebForms WebLogic WebSphere WildFly WinAPI Window Windows OS WinForms Wizard Workgroup Workspace WPF XCODE XHTML XML Zoom