centijson
centijson copied to clipboard
Output JSON object or array without DOM library
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