Writer for Simple JSON. More...
Inherits rapidjson::Writer< detail::RapidJsonOutputStream< BufferT > >, and boost::noncopyable.
Public Member Functions | |
SimpleJsonWriter (Buffer &output, bool pretty=false, int indent=4, bool all_fields=true) | |
Construct from output buffer/stream. More... | |
boost::call_traits< Buffer >::reference | GetBuffer () |
Access to underlying buffer. More... | |
Writer for Simple JSON.
bond::SimpleJsonWriter< BufferT >::SimpleJsonWriter | ( | Buffer & | output, |
bool | pretty = false , |
||
int | indent = 4 , |
||
bool | all_fields = true |
||
) |
Construct from output buffer/stream.
output | reference to output buffer/stream |
pretty | true to generate output with whitespaces, default false |
indent | number of spaces of indentation, default 4 |
all_fields | if false, optional fields may be omitted, default true |
boost::call_traits< Buffer >::reference bond::SimpleJsonWriter< BufferT >::GetBuffer | ( | ) |
Access to underlying buffer.