|
I did not follow the complete thread,
but ... if he only wants to read data returned from a webservice, why not
just using embedded SQL?
Something like this:
DCL-S JSONVar SQLType(CLOB: 16000000);
DCL-S Text Char(50);
//--------------------------------------------------------------------------
-------------------
Exec SQL
Set :JSONVar = SysTools.httpgetCLOB('http://YourURL', '');
Text = JSONVar_Data;
Dsply Text;
*InLR = *On;
JSONVar is converted by the SQL Precompiler into a data Structure with 2
Subfields
JSONVAR_LEN as UNS(10) representing the data length
JSCONVAR_DATA as Char(specified CLOB Length) which includes the data
As soon as the data is read into a variable it can be used in composition
with the XML functions or YAJL like any other variable.
BTW Embedded SQL also allows data to be directly read from the IFS.
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
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.