BloombergLP::baljsn::JsonFormatter::JsonFormatter

Create a JsonFormatter object that modifies the specified json object in accordance with subsequent calls the formatter manipulators. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used. The behavior is undefined unless json->isNull().

Synopsis

Declared in <baljsn_jsonformatter.h>

JsonFormatter(
    bdljsn::Json* json,
    allocator_type const& allocator = allocator_type());