[#BloombergLP-baljsn-JsonTokenizer-reset]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/JsonTokenizer.adoc[JsonTokenizer]::reset
:relfileprefix: ../../../
:mrdocs:

Reset this tokenizer to use the specified `json` as a source object for tokens&period;

== Synopsis

Declared in `&lt;baljsn&lowbar;jsontokenizer&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
reset(xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json] const* json);
----

== Description

All state associated with a previously specified source object (if any) is discarded&period; The behavior is undefined unless `json&hyphen;&gt;isArray()` or `json&hyphen;&gt;isObject()`&period;

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *json*
| source JSON array or object
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
