[#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` that tokenizes the specified `json` object. == 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()); ---- == 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 [cols="1,4"] |=== | Name| Description | *json* | source JSON array or object | *allocator* | memory allocator; default uses the default allocator |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#