Create a JsonFormatter that modifies the specified json object.
Synopsis
Declared in <baljsn_jsonformatter.h>
JsonFormatter(
bdljsn::Json* json,
allocator_type const& allocator = allocator_type());
Description
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().
Parameters
Name |
Description |
json |
null |
allocator |
memory allocator; default uses the default allocator |
Created with MrDocs