Print the characters that end a JSON array onto the output stream.
Synopsis
Declared in <baljsn_simpleformatter.h>
void
closeArray(ArrayFormattingStyle formattingStyle = e_REGULAR_ARRAY_FORMAT);
Description
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 formattingStyle denoting if the array being closed should be formatted as an empty array. If formattingStyle is not specified then the array being closed is formatted as a regular array having elements. The behavior is undefined if isFormattingArray() is false. Note that the formatting (and as a consequence the formattingStyle) is relevant only if this formatter encodes in the pretty style and is ignored otherwise.
Parameters
Name |
Description |
formattingStyle |
whether to format the array as empty |
Created with MrDocs