×
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.
for a new project I'm working on creating JSON data using Scott Klement's
excellent YAJL tool.
There is one issue I'm not quite capable of solving.
Consider this (pseudo-)code:
yajl_genOpen(*On);
yajl_beginObj();
yajl_beginArray('array');
yajl_beginObj('Object x in array');
yajl_beginObj('Object A in objectx ');
yajl_addChar('tag':'value');
yajl_endObj();
yajl_endObj();
yajl_beginObj('Object y in array');
yajl_addChar('tag':'value');
yajl_endObj();
yajl_endArray();
I would expect to receive an array of objects, where the first object
contains another object:
root object
array
object X
object A
tag : value
object Y
tag: value
However, what I get is slightly different:
root object
array
string "object x in array"
object A
tag : value
string "object Y"
namesless object
tag: value
Not sure if I'm doing something wrong or there is a but on YAJL.
Any help would be highly appreciated.
Thanks,
Peter
--
Peter Colpaert
Peter.Colpaert@xxxxxxxxx
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.