Re: Fast JSON parsing - was Re: opinion? LISTCAT (equivalent) with XML / JSON output

2015-07-21 Thread John McKown
On Tue, Jul 21, 2015 at 5:52 AM, David Crayford dcrayf...@gmail.com wrote: On 20/07/2015 9:37 PM, John McKown wrote: ​Thanks for the pointer. This is a on my own project which has been put on the back burner​. I'm fighting a hardware upgrade issue at home right now. I think the SATA

Re: Fast JSON parsing - was Re: opinion? LISTCAT (equivalent) with XML / JSON output

2015-07-21 Thread Jim Carpenter
On Tue, Jul 21, 2015 at 12:45 PM, John McKown john.archie.mck...@gmail.com wrote: Versus what other distribution? RH was one of the first available. When I first tried, and failed, there was mainly only Slackware. I couldn't get that installed on my XT. Ahhh... Good ol' Slackware. I tried that

Re: Fast JSON parsing - was Re: opinion? LISTCAT (equivalent) with XML / JSON output

2015-07-21 Thread David Crayford
On 20/07/2015 9:37 PM, John McKown wrote: ​Thanks for the pointer. This is a on my own project which has been put on the back burner​. I'm fighting a hardware upgrade issue at home right now. I think the SATA interface on the motherboard of one of my systems is getting flaky. And the old, IDE,

Fast JSON parsing - was Re: opinion? LISTCAT (equivalent) with XML / JSON output

2015-07-20 Thread David Crayford
FYI, If you are interested in the most efficient JSON parser out there check out jsmn (jasmine) http://zserge.com/jsmn.html. It's an incredibly simple low level API that does no memory allocations and is a thing of absolute beauty. Ironically, simple APIs are always hard to design. Here's an

Re: Fast JSON parsing - was Re: opinion? LISTCAT (equivalent) with XML / JSON output

2015-07-20 Thread John McKown
On Mon, Jul 20, 2015 at 8:12 AM, David Crayford dcrayf...@gmail.com wrote: FYI, If you are interested in the most efficient JSON parser out there check out jsmn (jasmine) http://zserge.com/jsmn.html. It's an incredibly simple low level API that does no memory allocations and is a thing of

Re: opinion? LISTCAT (equivalent) with XML / JSON output

2015-07-17 Thread John McKown
On Fri, Jul 17, 2015 at 9:03 AM, David Crayford dcrayf...@gmail.com wrote: IBM are going after JSON big time with the new z/OS Connect tooling which transforms JSON into data structures like COBOL copybooks etc. ​I hadn't heard of the z/OS Connect tooling. Sounds interesting. I see what I can

opinion? LISTCAT (equivalent) with XML / JSON output

2015-07-17 Thread John McKown
I imagine that many here, like myself, are guilty of scraping an IDCAMS LISTCAT report using something like REXX to produce information. I do it in a REXX program to recreate DEFINE decks for VSAM data sets which have been lost. I am aware of the IGGCSI00 interface whcih can be used with REXX and

Re: opinion? LISTCAT (equivalent) with XML / JSON output

2015-07-17 Thread David Crayford
What clients do you expect to use this API? XML is old hat and being deprecated and JSON is only useful in a language that can encode/decode into an internal object. JSON is better but only if you are using a language that can encode/decode in JSON seamlessly. On 17/07/2015 8:39 PM, John

Re: opinion? LISTCAT (equivalent) with XML / JSON output

2015-07-17 Thread John McKown
On Fri, Jul 17, 2015 at 7:57 AM, David Crayford dcrayf...@gmail.com wrote: What clients do you expect to use this API? XML is old hat and being deprecated and JSON is only useful in a language that can encode/decode into an internal object. ​I don't actually have any clients in mind. This is

Re: opinion? LISTCAT (equivalent) with XML / JSON output

2015-07-17 Thread David Crayford
IBM are going after JSON big time with the new z/OS Connect tooling which transforms JSON into data structures like COBOL copybooks etc. That's all good but is JSON always the best choice when a simple text protocol can do the same job without the bloat

Re: opinion? LISTCAT (equivalent) with XML / JSON output

2015-07-17 Thread Kirk Wolf
You could use the IGGCSI00 Java wrapper that is already in the z/OS Java SDK: http://www-01.ibm.com/support/knowledgecenter/api/content/SSYKE2_8.0.0/com.ibm.java.zsecurity.api.80.doc/com.ibm.jzos/com/ibm/jzos/CatalogSearch.html It allows full access to IGGCSI00 functionality. Kirk Wolf

Re: opinion? LISTCAT (equivalent) with XML / JSON output

2015-07-17 Thread John McKown
On Fri, Jul 17, 2015 at 10:19 AM, Farley, Peter x23353 peter.far...@broadridge.com wrote: Maybe also output format CSV (which could be either comma- or tab-separated) for direct input to spreadsheet software. If we had GNU awk 4.1+ available in z/OS Unix we would also have the gawk

Re: opinion? LISTCAT (equivalent) with XML / JSON output

2015-07-17 Thread John McKown
On Fri, Jul 17, 2015 at 10:39 AM, Kirk Wolf k...@dovetail.com wrote: You could use the IGGCSI00 Java wrapper that is already in the z/OS Java SDK: