BloombergLP::baljsn::JsonTokenizer::JsonTokenizer

Create a JsonTokenizer that tokenizes the specified json object.

Synopsis

Declared in <baljsn_jsontokenizer.h>

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

Description

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.

Parameters

NameDescription
jsonsource JSON array or object
allocatormemory allocator; default uses the default allocator