On 28/08/2018 1:11 AM, Tom Ross wrote:
On 22/08/2018 11:51 PM, Charles Mills wrote:

COBOL does not seem like a great choice either to me personally, but some=
folks, and especially some shops, are most comfortable with COBOL.
The JSON PARSE statement in COBOL is the keasiest way to parse JSON ever!


You can't argue with that! Almost as easy as JavaScript :)

let obj = JSON.parse('{ "name":"John", "age":30, "city":"New York"}');

Is there a COBOL equivalent to JSON.stringify?


You just point to a data item which contains your UTF-8 JSON text, and give
the name of a COBOL data structure (group) that you want the values from the
JSON Name/Value pairs top go into, and let COBOL do all the work for you!

You do have to be up to the 2017 COBOL compiler level, since that is when we
delivered JSON PARSE, in COBOL V6.2.

Cheers,
TomR              >> COBOL is the Language of the Future! <<

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to