I think perhaps you are using the wrong words. "Parse" and "Consume" normally mean the same in this context.

Regardless YAJL can be used to create/generate JSON _and_ to Parse/Consume JSON.

To create JSON with YAJL there are two options. Use the raw YAJL APIs or use DATA-GEN with the YAJLGEN generator.

To parse JSON with YAJL again two options. Use the raw APIs or use DATA-INTO with the YAJLINTO parser.


If you are talking about serving up JSON from a web service then that is a different story.


As others have said you can also use SQL to both generate and consume JSON but how easily depends on the JSON requirements.



On Feb 27, 2020, at 4:33 AM, Cabero <cabero@xxxxxxxxxxxxx> wrote:

Hello All.

I parse JSON data using YAJL in RPG [1]but can't consume JSON.
Can anybody point me to working open source doing so please.
Scott Klement's article was easy to follow for providing JSON. [2]
One comment on LinkedIn insinuated YAJL is not the way to go but IWS?

--
Yours sincerely.
Esteban Cabero
www.linkedin.com/in/cabero
Cell: +27(0)843963122

Links:
------
[1]
https://ibmrestapi.blogspot.com/p/sacascr1-totallyfully-free-rpg.html
[2] https://ibmrestapi.blogspot.com/p/blog-page.html
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2021 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.