×
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'm trying to parse nested JSON...
Using this JSON:
{
"elementA":"alpha",
"elementB":"bravo",
"nestedOne":"{\"elementD\":\"delta\",\"nestedTwo\":{\"elementE\":\"echo\",\"elementF\":\"foxtrot\"}",
"elementC":"charlie"
}
Look closely at the JSON and you should see that it is NOT NESTED. Look
particularly at:
"nestedOne":"{\"elementD\":\"delta\",\"nestedTwo\":{\"elementE\":\"echo\",\"elementF\":\"foxtrot\"}",
What made you think the JSON was nested? That expression is a simple
Name:Value pair. The value contains 12 escape sequences resolving to double
quotes at runtime. But all together it's a simple string value. There's NO
NESTING. YAJL correctly generates a simple RPG data structure that contains
the following subfield:
NESTEDONE varchar(72) inz('');
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.