[#BloombergLP-baljsn-JsonFormatter-openArray]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/JsonFormatter.adoc[JsonFormatter]::openArray
:relfileprefix: ../../../
:mrdocs:

Create a new array&period; Subsequently created elements will land in this array (in order of creation) until `closeArray` is called&period; The elements can be created by `putValue`&sol;`putNullValue`&sol;`openObject`&sol;`openArray`&period; The specified `formatAsEmptyArray` is ignored&semi; arrays are unconditionally formatted&period;

== Synopsis

Declared in `&lt;baljsn&lowbar;jsonformatter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
openArray(bool formatAsEmptyArray = false);
----


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