From: Aaron Bartell
[Aaron raises his hand] Tell us more please :-)
Okay. Last week I shared an example of an RPG program generating a JSON formatted output stream to populate a GRID widget. See:
http://www.radile.com/rdweb/temp/petitems.pdf
The GRID source was based on the sample that you posted in your project, while the RPG source was my own. We already discussed the streamlined nature of the jsoRecWrt() procedure to generate and output JSON formatted records for the GRID.
But generating "output" streams is only half of the puzzle. The other half is parsing, validating, and mapping JSON formatted "input" streams from GUI clients to internal RPG data structures. I more recently completed that interface by implementing jsoRecGet(), which maps input streams to records with just one line of code. And alternatively, jsoFldGet() to retrieve individual field values specifically by name.
Actually, the service program exports 15 new procedures for working with JSON formatted I/O - according to the level of control needed.
These procedures complement others in the framework which were traditionally used for interacting with traditional HTML clients.
Nathan.
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.