This class implements a formatter for rendering JSON text elements.
Synopsis
Declared in <baljsn_simpleformatter.h>
class SimpleFormatter;
Description
This class provides operations for rendering JSON text elements to an output stream (supplied at construction) according to a set of formatting options (also supplied at construction). This class has an interface that's easier to use than that of baljsn::Formatter, and generates more correctly‐formatted pretty output.
Enums
Name |
Description |
This |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this object. Note that correct JSON has been generated if the |
Print |
|
|
|
|
|
Return the allocator used by this object to supply memory. |
|
Print the characters that end a JSON array onto the output stream. |
|
Print the characters that end a JSON object onto the output stream. |
|
Return whether this formatter has produced complete JSON. |
|
Return whether this formatter is currently formatting an array. |
|
Return whether this formatter is currently formatting an object. |
|
Return whether a subsequent value must supply a name. |
|
|
|
|
|
|
Declare that |
Created with MrDocs