Constructors
Declared in <baljsn_jsontokenizer.h>
Create a JsonTokenizer object. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used. No tokens can be generated until a source bdljsn::Json object is specified via the reset method.
JsonTokenizer();
» more...
Same as the related overload above for JsonTokenizer.
explicit
JsonTokenizer(allocator_type const& allocator);
» more...
Create a JsonTokenizer object that can supply a series of tokens describing the specified json object. 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.
JsonTokenizer(
bdljsn::Json const* json,
allocator_type const& allocator = allocator_type());
» more...