Create a JsonTokenizer that tokenizes the specified json object.
Declared in <baljsn_jsontokenizer.h>
JsonTokenizer(
bdljsn::Json const* json,
allocator_type const& allocator = allocator_type());
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->isArray() or json->isObject(). Note that json can also be specified via the reset method.
| Name | Description |
|---|---|
| json | source JSON array or object |
| allocator | memory allocator; default uses the default allocator |