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

Assign to this object by moving from the specified `rhs` array&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;(xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;JsonArray&gt;] rhs);
----

== Description

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 `Json` object if `allocator() &equals;&equals; rhs&period;allocator()`&semi; otherwise, they are copied&period; `rhs` is left in a valid but unspecified state&period; The value currently held by this object (if any) is destroyed if that value&apos;s type is not `JsonArray`&period;

== Return Value

a reference providing modifiable access to this object

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| source array
|===


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