[#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 for subsequently added elements. == Synopsis Declared in `<baljsn_jsonformatter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void openArray(bool formatAsEmptyArray = false); ---- == Description Subsequently created elements will land in this array (in order of creation) until `closeArray` is called. The elements can be created by `putValue`/`putNullValue`/`openObject`/`openArray`. The specified `formatAsEmptyArray` is ignored; arrays are unconditionally formatted. == Parameters [cols="1,4"] |=== | Name| Description | *formatAsEmptyArray* | ignored; arrays are unconditionally formatted |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#