[#BloombergLP-baljsn-Encoder_Formatter] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baljsn.adoc[baljsn]::Encoder_Formatter :relfileprefix: ../../ :mrdocs: This class implements a formatter for rendering JSON text elements. == Synopsis Declared in `<baljsn_encoder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Encoder_Formatter; ---- == Description This class provides operations for rending JSON text elements to an output stream (supplied at construction) according to a set of formatting options (also supplied at construction). This is a component‐private class and should not be used outside of this component. DEPRECATED: Use `baljsn::Formatter` instead. == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/baljsn/Encoder_Formatter/2constructor.adoc[`Encoder_Formatter`] [.small]#[constructor]# | Create a `Encoder_Formatter` object using the specified `stream` and `options`. | xref:BloombergLP/baljsn/Encoder_Formatter/closeArray.adoc[`closeArray`] | Print the end‐of‐array designator onto the construction stream. | xref:BloombergLP/baljsn/Encoder_Formatter/closeDocument.adoc[`closeDocument`] | Print onto the stream supplied at construction the sequence of characters designating the end of the document. | xref:BloombergLP/baljsn/Encoder_Formatter/closeElement.adoc[`closeElement`] | Print onto the stream supplied at construction the sequence of characters designating the end of an element. | xref:BloombergLP/baljsn/Encoder_Formatter/closeObject.adoc[`closeObject`] | Print onto the stream supplied at construction the sequence of characters designating the end of an object. | xref:BloombergLP/baljsn/Encoder_Formatter/indent.adoc[`indent`] | Print indentation whitespace onto the construction stream. | xref:BloombergLP/baljsn/Encoder_Formatter/isArrayElement.adoc[`isArrayElement`] | Return the value of the flag denoting if the current element refers to an array element. | xref:BloombergLP/baljsn/Encoder_Formatter/openArray.adoc[`openArray`] | Print the start‐of‐array designator onto the construction stream. | xref:BloombergLP/baljsn/Encoder_Formatter/openDocument.adoc[`openDocument`] | Print onto the stream supplied at construction the sequence of characters designating the start of the document. | xref:BloombergLP/baljsn/Encoder_Formatter/openElement.adoc[`openElement`] | Print the start‐of‐element designator for `name` onto the stream. | xref:BloombergLP/baljsn/Encoder_Formatter/openObject.adoc[`openObject`] | Print onto the stream supplied at construction the sequence of characters designating the start of an object. | xref:BloombergLP/baljsn/Encoder_Formatter/setIsArrayElement.adoc[`setIsArrayElement`] | Set the flag denoting if the current element refers to an array element to the specified `isArrayElement`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#