[#BloombergLP-baljsn-Formatter-closeArray] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/Formatter.adoc[Formatter]::closeArray :relfileprefix: ../../../ :mrdocs: Print onto the stream supplied at construction the sequence of characters designating the end of an array (referred to as an "array" in JSON). Optionally specify `formatAsEmptyArray` denoting if the array being closed should be formatted as an empty array. If `formatAsEmptyArray` is not specified then the array being closed is formatted as an array having elements. The behavior is undefined unless this `Formatter` is currently formatting an array. Note that the formatting (and as a consequence the `formatAsEmptyArray`) is relevant only if this formatter encodes in the pretty style and is ignored otherwise. == Synopsis Declared in `<baljsn_formatter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void closeArray(bool formatAsEmptyArray = false); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#