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 firstname.lastname@example.org.
I was working on a project the other day where the JSON contains a large
amount of data.
I had previously used my own JSON parser that I wrote a few years ago. I
have one function that returns a pointer to the JSON data as well as the
length of that data. It can be any length, which is nice (no 64k limit).
So I can do something like:
rc = #json_setValue('tag':'fileData); // the tag to retrieve data for
rc = #json_getData(data@);
rc will contain the length of the data, and data@ will be a pointer to it.
From there if it's base64 I can decode it and then write it all to a stream
file or do whatever I want.
I want to use YAJL for this now because it SO much faster than my home
grown parser. But I didn't see such a beast in the docs.
I did see, in the source, a reference to something that looks like what I'm
looking for, but there was a stern warning there as well saying "not
recommended for RPG". :)
Just wondering if there's anything similar before I attempt to "roll my
own" and modify the YAJL parser.
As an Amazon Associate we earn from qualifying purchases.