This class implements a formatter for rendering JSON text elements.
Synopsis
Declared in <baljsn_encoder.h>
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
Name |
Description |
|
Create a |
Print the end‐of‐array designator onto the construction stream. |
|
Print onto the stream supplied at construction the sequence of characters designating the end of the document. |
|
Print onto the stream supplied at construction the sequence of characters designating the end of an element. |
|
Print onto the stream supplied at construction the sequence of characters designating the end of an object. |
|
Print indentation whitespace onto the construction stream. |
|
Return the value of the flag denoting if the current element refers to an array element. |
|
Print the start‐of‐array designator onto the construction stream. |
|
Print onto the stream supplied at construction the sequence of characters designating the start of the document. |
|
Print the start‐of‐element designator for |
|
Print onto the stream supplied at construction the sequence of characters designating the start of an object. |
|
Set the flag denoting if the current element refers to an array element to the specified |
Created with MrDocs