|
Thank you Peter. I am already writing a .json file with RPG using Scott's yajl library. Super simple and works just fine.
My current goal is to go the next step and offer the output as a REST web service. I would explain it a bit more, but as is evident, I am confused about the process so anything I might write about it should be viewed with caution.
On 8/27/2018 4:59 PM, Pete Helgren wrote:
Booth,
Not sure if you are set on a DB2 file outputting JSON and then writing it out....I haven't played with JSON in that way. But I am using CGIDEV2 in a SQLRPGLE program and it simply outputs JSON as part of an HTML template where I iterate through the DB records, and use updhtmlvar to update each json value in the template and just write it out. You can see it in action here:
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.