On 23/08/2018 12:46 AM, Kirk Wolf wrote:
I've used the IBM JSON parser, from C.
I don't see why it would be ill suited for assembler more than anything
else :-)
I'm doing a lot of JSON work right now and one task was to create a JSON
to YAML convertor for swagger documents.
The elegant solution was to use recursion which is difficult to do in
assembler. It's difficult to do in COBOL too.
I would be interested to know why you used the IBM JSON parser? One only
has to browse the C sample in SYS1.SAMPLIB to
conclude it's a inelegant beast with a bloated API. I can only assume
that you were working on a project that precluded open source software?
I've used several open source C/C++ JSON libraries on z/OS. They're easy
to port (just tweaked to handle UTF8 escape sequences if you want to
process EBCDIC).
I've used YAJL [1] from C but much prefer C++ libraries with map like
interfaces and STL compatible iterators. JsonCpp [2] is quite good but I
prefer picojson [3]
which also has a streaming API.
[1] https://github.com/lloyd/yajl
[2] http://open-source-parsers.github.io/jsoncpp-docs/doxygen/index.html
[3] https://github.com/kazuho/picojson
On Wed, Aug 22, 2018 at 10:51 AM Charles Mills <charl...@mcn.org> wrote:
*Personally* I agree, but different languages for different folks. Some
people are very comfortable in assembler, especially with the structured
macros. I think I can state with some confidence that if @EdJaffe need to
parse some JSON documents he would do it from assembler.
COBOL does not seem like a great choice either to me personally, but some
folks, and especially some shops, are most comfortable with COBOL.
Charles
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
Behalf Of David Crayford
IMO, assembler isn't the right language to be parsing complex JSON
documents. I couldn't think of a worse
language for the job.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN