[#BloombergLP-bdljsn-StringUtil-readUnquotedString-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/StringUtil.adoc[StringUtil]::readUnquotedString
:relfileprefix: ../../../
:mrdocs:

Load into `value` the UTF&hyphen;8 equivalent of an unquoted JSON `string`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
readUnquotedString(
    xref:bsl/string.adoc[bsl::string]* value,
    std::string&lowbar;view const& string,
    int flags = e&lowbar;NONE);
----

== Description

Load to the specified `value` the UTF&hyphen;8 codepoint sequence equivalent to the specified `string`, that is JSON&hyphen;compliant absent the leading and trailing double quote characters (see &lsqb;&rsqb;Strings))&period; Return 0 on success and a non&hyphen;zero value otherwise&period; Optionally specify `flags` to request variances from certain rules of JSON decoding (see )&period;

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| receives the decoded UTF&hyphen;8 string
| *string*
| unquoted JSON string contents to decode
| *flags*
| optional decoding variance flags
|===


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