This class implements a formatter providing operations for rendering JSON text elements to an output stream (supplied at construction) according to a set of formatting options (also supplied at construction).
Synopsis
Declared in <baljsn_simpleformatter.h>
class SimpleFormatter;
Description
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 onto the stream supplied at construction the specified |
|
|
|
|
|
Return the allocator used by this object to supply memory. Note that if no allocator was supplied at construction the currently installed default allocator is used. |
|
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 |
|
Print onto the stream supplied at construction the sequence of characters designating the end of an object (referred to as an "object" in JSON). The behavior is undefined unless |
|
Return |
|
Return |
|
Return |
|
Return |
|
|
|
|
|
|
|
Created with MrDocs