centijson icon indicating copy to clipboard operation
centijson copied to clipboard

Output JSON object or array without DOM library

Open d9k opened this issue 1 year ago • 0 comments

README needs more code examples. It's unclear how to output JSON object or JSON array without the use of DOM library and intermediate DOM representation.

Something like

    writer.StartObject();
    writer.Key("hello");
    writer.String("world");
    writer.StartArray();
    for (unsigned i = 0; i < 4; i++)
        writer.Uint(i);
    writer.EndArray();
    writer.EndObject()

in http://rapidjson.org/md_doc_sax.html

d9k avatar Dec 02 '24 08:12 d9k