[#BloombergLP-bdljsn-operator_json]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::operator&quot;&quot;&lowbar;json
:relfileprefix: ../../
:mrdocs:

Return a `bdljsn&colon;&colon;Json` object from the specified JSON literal text&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Json.adoc[bdljsn::Json]
operator&quot;&quot;&lowbar;json(
    char const* text,
    std::size&lowbar;t numBytes);
----

== Description

Return a `bdljsn&colon;&colon;Json` object having the value of the JSON described in the specified `text` of the specified `numBytes`&period; If `text` is not a valid JSON document then invoke the currently installed `bsls&colon;&colon;Assert` failure handler&period;

== Return Value

a `bdljsn&colon;&colon;Json` object having the value of the JSON in `text`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *text*
| JSON text of the literal
| *numBytes*
| length of `text` in bytes
|===


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