JSON Voorhees
Killer JSON for C++
ostream_pretty_encoder to pretty-print JSON to std::cout

Like ostream_encoder, but pretty prints output to an std::ostream.

jsonv::ostream_pretty_encoder encoder(std::cout);
encoder.encode(some_value);
encoder.encode(another_value);

to pretty-print JSON to std::cout