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

Assignment operators

== Synopses

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

Assign to this object the value of the specified `rhs` object, and return a reference providing modifiable access to this object&period;


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

[.small]#xref:BloombergLP/bdljsn/JsonObject/operator_assign-09.adoc[_» more&period;&period;&period;_]#

Assign to this object the value of the specified `rhs` object, and return a reference providing modifiable access to this object&period; The contents of `rhs` are moved (in constant time) to this `JsonObject` if `allocator() &equals;&equals; rhs&period;allocator()`&semi; otherwise, all elements in this container are either destroyed or move&hyphen;assigned to, and each additional element in `rhs`, if any, is move&hyphen;inserted into this `JsonObject`&period; `rhs` is left in a valid but unspecified state&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/JsonObject.adoc[JsonObject]&
xref:BloombergLP/bdljsn/JsonObject/operator_assign-0dd.adoc[operator&equals;](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;JsonObject&gt;] rhs);
----

[.small]#xref:BloombergLP/bdljsn/JsonObject/operator_assign-0dd.adoc[_» more&period;&period;&period;_]#

Assign to this `JsonObject` members created (in order) from the specified `memberInitializers`&period; List members having key values that were previously inserted into the this object are ignored&period; Previous members of this object, if any, are destroyed&period; The behavior is undefined unless the key of each member in `members` is valid UTF&hyphen;8 (see `bdlde&colon;&colon;Utf8Util&colon;&colon;isValid`)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/JsonObject.adoc[JsonObject]&
xref:BloombergLP/bdljsn/JsonObject/operator_assign-0e.adoc[operator&equals;](std::initializer&lowbar;list&lt;JsonObject&lowbar;MemberInitializer&gt; memberInitializers);
----

[.small]#xref:BloombergLP/bdljsn/JsonObject/operator_assign-0e.adoc[_» more&period;&period;&period;_]#


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