Discussions tagged JSON

Hi Everyone, I've got a question about how people are creating complex JSON for real world applications.  I'm updating an application to use a third party's REST API and some of the API calls require reasonably complex JSON to be sent. The JSON may ...
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. ...
  • Page :
  • 1