Print the end‐of‐array designator onto the construction stream.
Synopsis
Declared in <baljsn_encoder.h>
void
closeArray(bool formatAsEmptyArrayFlag = false);
Description
Print onto the stream supplied at construction the sequence of characters designating the end of an array. Optionally specify formatAsEmptyArrayFlag denoting if the array being closed should be formatted as an empty array. If formatAsEmptyArrayFlag is not specified then the array being closed is formatted as an array having elements. 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.
Parameters
Name |
Description |
formatAsEmptyArrayFlag |
whether to format as an empty array |
Created with MrDocs