Hi,
Just wondering if there is any tool (function) I can use to parse JSON string using 4GL. If therse isnt any builin function avaiable then what would be the best way to parse the REST JSON data.
Thanks
Hi,
Just wondering if there is any tool (function) I can use to parse JSON string using 4GL. If therse isnt any builin function avaiable then what would be the best way to parse the REST JSON data.
Thanks
Hi, not aware of a builtin function but you check out this example here: X3/WebServices/Rest/ZSAGEPRODUCTS.src at master · Delamater/X3 · GitHub
Hi,
You will find several functions allowing you to manipulate Json in our free library:Json Library for Sage X3
Please note the release of Sage X3 coming end of October (2023 R2) contains a native JSON parser with native instructions in the X3 language. Please watch for this release and for the documentation that will come with it for those new instructions. Native JSON parsing will be much faster than 4GL libraries and can be used for parsing and for building JSON streams. It will be used in X3 internally as well, including in the new GraphQL API framework.
This is a good news!
Good news, and for older versions ?
*Community Hub is the new name for Sage City