[#BloombergLP-baljsn-Encoder_Formatter-openArray]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::xref:BloombergLP/baljsn/Encoder_Formatter.adoc[Encoder&lowbar;Formatter]::openArray
:relfileprefix: ../../../
:mrdocs:

Print the start&hyphen;of&hyphen;array designator onto the construction stream&period;

== Synopsis

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

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

== Description

Print onto the stream supplied at construction the sequence of characters designating the start of an array&period; Optionally specify `formatAsEmptyArrayFlag` denoting if the array being opened should be formatted as an empty array&period; If `formatAsEmptyArrayFlag` is not specified then the array being opened is formatted as an array having elements&period; Note that the formatting (and as a consequence the `formatAsEmptyArrayFlag`) is relevant only if this formatter encodes in the pretty style and is ignored otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *formatAsEmptyArrayFlag*
| whether to format as an empty array
|===


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