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