[#BloombergLP-baljsn-JsonFormatter-2constructor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/JsonFormatter.adoc[JsonFormatter]::JsonFormatter :relfileprefix: ../../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- JsonFormatter( xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json]* json, xref:BloombergLP/baljsn/JsonFormatter/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#