[#BloombergLP-bdljsn-Json-operator_assign-0b6]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::operator&equals;
:relfileprefix: ../../../
:mrdocs:

Assign to this object a value of type `bsl&colon;&colon;string` initialized from the specified `rhs`, and return a reference providing modifiable access to this object&period; The value currently held by this object (if any) is destroyed if that value&apos;s type is not `bsl&colon;&colon;string`&period; The behavior is undefined unless `rhs` is valid UTF&hyphen;8 (see `bdlde&colon;&colon;Utf8Util&colon;&colon;isValid`)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Json.adoc[Json]&
operator&equals;(char const* rhs);
----


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