× 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.



On 2018-04-26 3:08 PM, Jim L. Bostwick wrote:
I am having a problem with parser option 'boolean=ind' when the target data structure has a nested data structure.
...

It worked for me, putting '0's and '1's into the indicator subfields.

Can you show your DATA-INTO statement?

Here's the DATA-INTO statement I used when I tried your data structure and JSON string:

data-into GetCarrierLookupResult
%data(jsonString3 :'case=any countprefix=num')
%parser('JSONPARSE' : 'boolean=ind');

In debug:
> EVAL getcarrierlookupresult
GETCARRIERLOOKUPRESULT.RESULT = '1'
GETCARRIERLOOKUPRESULT.ERRORCODE = 01436.
...
GETCARRIERLOOKUPRESULT.RESPONSE.INTERNATIONAL(1) = '0'
GETCARRIERLOOKUPRESULT.RESPONSE.INVALID(1) = '0'
GETCARRIERLOOKUPRESULT.RESPONSE.LANDLINE(1) = '0'


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-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.