On 29/08/2018 12:28 AM, Tom Ross wrote:
You can't argue with that! Almost as easy as JavaScript:)let obj =3D JSON.parse('{ "name":"John", "age":30, "city":"New York"}'); Is there a COBOL equivalent to JSON.stringify?Yes! It is the JSON GENERATE statement, available in 2016 in COBOL V6.1
Awesome! I'm guessing it uses the same environment as the XML parser/generator?
The tricky part comes when the structure of the JSON is unknown and has to be traversed by node.
---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
