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

Load into the specified `data` the value of the current token&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
value(std::string&lowbar;view* data) const;
----

== Description

Return 0 on success and a non&hyphen;zero value otherwise&period; The behavior is undefined unless `e&lowbar;ELEMENT&lowbar;NAME &equals;&equals; tokenType()`&period;

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *data*
| receives the current element name
|===


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