[#BloombergLP-bdljsn-Json-makeArray-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::makeArray
:relfileprefix: ../../../
:mrdocs:

Replace this value with a `JsonArray` moved from `array`&period;

== Synopsis

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

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

== Description

Create an instance of type `JsonArray` in this object, using the allocator currently held by this object to supply memory, and return a reference providing modifiable access to the created instance&period; Initialize the `JsonArray` by moving from the specified `array`&period; This method first destroys the current value held by this object (even if the type currently held is `JsonArray`)&period;

== Return Value

a reference providing modifiable access to the held `JsonArray`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *array*
| value used to initialize the created array
|===


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