[#BloombergLP-bdljsn-StringUtil-readString-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/StringUtil.adoc[StringUtil]::readString
:relfileprefix: ../../../
:mrdocs:

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

== Synopses

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

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


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

[.small]#xref:BloombergLP/bdljsn/StringUtil/readString-00.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:BloombergLP/bdljsn/StringUtil/readString-01.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:BloombergLP/bdljsn/StringUtil/readString-0f.adoc[_» more&period;&period;&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*
| JSON string to decode (including quotes)
| *flags*
| optional decoding variance flags
|===


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