[#BloombergLP-bdljsn-Json-2conversion-00]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::operator xref:bsl/string.adoc[bsl::string] const&
:relfileprefix: ../../../
:mrdocs:

Return a non&hyphen;modifiable reference to the held string&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
operator xref:bsl/string.adoc[bsl::string] const&() const;
----

== Description

Return a reference providing non&hyphen;modifiable access to the value of type `JsonString` held by this object&period; The behavior is undefined unless `isString()` returns true&period;

== Return Value

a non&hyphen;modifiable reference to the held string


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