× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I am having a problem with parser option 'boolean=ind' when the target data structure has a nested data structure.

Dcl-Ds GetCarrierLookupResult Qualified Inz;
Result Ind;
ErrorCode Zoned(5);
Message VarChar(300);
numResponse Int(10);
Dcl-Ds Response Dim(4);
CarrierCode Char(10);
Carrier VarChar(30);
International Ind;
Invalid Ind;
Landline Ind;
Phone VarChar(20);
End-Ds;
End-Ds;

jsonString3 =
'{"GetCarrierLookupResult":' +
'{"Result":true,"ErrorCode":1436,' +
'"Message":"Resolve carrier executed successfully",' +
'"Response":[{"CarrierCode":"999 ","Carrier":"AT&Z",' +
'"International":false,' +
'"Invalid":false,"Landline":false,"Phone":"15555551212"},' +
'{"CarrierCode":"777 ","Carrier":"Horizon",' +
'"International":false,' +
'"Invalid":false,"Landline":false,"Phone":"15555551212"}' +
']' +
'}' +
'}';

All of the ind defined fields contain 't' or 'f' rather than '1' or '0'.....

I am using the JSONPARSE source from QOAR/SAMPLE. I am on V7R2.


Jim Bostwick



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

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.