[#BloombergLP-bdljsn-JsonArray-operator_assign-08]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonArray.adoc[JsonArray]::operator&equals;
:relfileprefix: ../../../
:mrdocs:

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 `JsonArray` if `allocator() &equals;&equals; rhs&period;allocator()`&semi; otherwise, all elements in this `JsonArray` are either destroyed or move&hyphen;assigned to and each additional element in `rhs` is move&hyphen;inserted into this `JsonArray`&period; `rhs` is left in a valid but unspecified state&period;

== Synopsis

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

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


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