|
Greetings,
The following is JSON data subject to my question:
{"data":{"generatedIds":["4Uz+N55BR2SMxKQWyHOTpA=="]},"success":true,"error":null,"validations":null }
Using YAJL API by Scott Klement and struggling with parsing the JSON data returned from a web service cal. I can successfully read the values for the "data", "generatedIds" and the first and last element of the array. Because the array element does not have a name, I cannot retrieve its value.
node = YAJL_object_find(docNode : 'data');
node = YAJL_object_find(node:'generatedIds');
node = YAJL_ARRAY_ELEM(node:1);
node = YAJL_object_find(node: ___ );
genId = yajl_get_string(node);
Thanks,
Nihat.
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.