[#BloombergLP-bdljsn-JsonUtil-read-00a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonUtil.adoc[JsonUtil]::read
:relfileprefix: ../../../
:mrdocs:

Load a value&hyphen;semantic representation of JSON text into `result`&period;

== Synopsis

Declared in `&lt;bdljsn&lowbar;jsonutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
read(
    xref:BloombergLP/bdljsn/Json.adoc[Json]* result,
    xref:BloombergLP/bdljsn/Error.adoc[Error]* errorDescription,
    std::string&lowbar;view const& input);
----

== Description

Return 0 on success and a non&hyphen;zero value otherwise&period; See the first `read` overload for full contract details&period;

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *result*
| object to receive the parsed JSON
| *errorDescription*
| receives a description if parsing fails
| *input*
| string view supplying JSON text
|===


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