s/JSOPN/JSONP/ ? Cheers, Martin
Sent from my iPad > On 29 Aug 2018, at 18:05, Tom Ross <[email protected]> wrote: > > >> 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? > > > Well, it runs in the COBOL environment, so if you are talking about > COBOL XML GENERATE and XML PARSE (COMPAT), then yes. If you are talking about > the XMLSS option COBOL XML PARSE, it runs in a mixture of COBOL and > 'z/OS XML System Services' parser environments. > > >The tricky part comes when the structure of the JSON is unknown and has=20 > >to be traversed by node. > > Well, JSOPN is for RESTful services, where you tell clients what the JSON > for a service request should look like. The client and the service have to > know a little about each other. Good luck with your project! > > 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 >Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
