Discussions tagged JSON

SQL Server setting is "ansi_padding"=ON and using JSONIMPORT to import data into datawindow but wherever data type of column in SQL server is CHAR, trailing spaces are coming. If we don't use JSONImport functionality to import data into Datawindow s...
Hello, Using PB 2019R3 Build 2703 - Using Theme Flat Design Blue Need to set a (different) background color for dropdowndatawindow from datawindow.  Having the same background color for both datawindow and dropdown datawindow is bit confusing. Fla...
  Good afternoon, I have a DataWindows that I want to take to Json, but the problem is that it is not respecting the upper and lower case of the headers. How was this solved?   //ls_json_resultado = lds_select.ExportJson( ) ls_json_resultado =...
Okay, so I have the following JSON: { "PATIENT_CASE": [ { "CaseDate": "03/05/2021", "NatureofCase": "Abdomen Injury", "CaseClosed": "No", "CaseID": 1261106365, "CenterID": 4716, "SortDate": "2021/03/05", "PatientID": 1261070650, "Hipaa": "No", "Desc...
Hello All, on windows server running a EXE the exportJson retunrs and empty string all the other features are working do we need any aditional DLL other than the ones of the runtime packager and the C++ runtime?...
Hello, I was wondering if anybody knows whether the Pipeline object will be capable of reading data from json files in near future. Best regards,Konstantin...
Hi Guys anyone of you knows if is possible configuring theme file .json in order to have this window title bar:   As you can see there is a color gradient and yellow row a the bottom...   Thanks in advance ...
I am studding the JSON support in PowerBuilder 2019 (R2) and I am a bit confused on how can I obtain the JSON string of a key in an array. Let's suppose that you have the following JSON: { "Sales":[ { "DiscountType":{ "Id":1, "Label":"667 trig", "C...
Hi PBers.....! I recently tested / used the dw.ExportJson() combined with JSONPackage and I am starting to feel that it's time to move on, from restful XML services to JSON.  What worries me is that I didn't find any way to limit the data exported ...
Hi, I can't find any way how to import JSON data to nested DataWindow report. Is here anyone who knows how to do it? I can import data to the main DataWindow, but I can't find out any way how to import it to the nested one. It just stays empty now. ...
We are on PB 2017 LTR and looking for simple syntax to convert a simple powerbuilder array to and from Json so we can save the array values in simple Json , then reload the array directly from JSON. We never used json before and a little inexperienc...
Hi, I need to access the json array, but I can't find a way to do that. Array: {    "department_array":[       {          "name":"Website",         "col1":"AAA",         "col2":"AEI"      },      {          "name":"PowerBuilder",         "col1":"B...
Hi All, The result set return by the datastore is a JSON format which is different when compared with the JSON string returned by the datastore.ExportPlainJson built in method: teh column names are surrounded by the back slash character \ Example i...
PB 2017 R3 build 1858  32 bit application I have been doing a lot of web client refactoring lately, using JSON. I some instances I send and receive huge JSON return data sets, of a complex, nested  nature and containing base64 encoded images. One ...
In my PowerBuilder Client, I want to use the JsonPackage object to send the result sets of two datastores to our Web API that was created with SnapDevelop.  Here is my PB code: //set values of JSONPackage with API datastores ljpk_submit.setvalue( "...
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....
  • Page :
  • 1