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_formatter.h>
class Formatter;
Member Functions
Name |
Description |
|
Constructors |
Print onto the stream supplied at construction the sequence of characters designating an array element separator (i.e., |
|
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 member (referred to as a "name/value pair" in JSON). The behavior is undefined unless this |
|
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 this |
|
Return the number of currently open nested objects or arrays. |
|
Print onto the stream supplied at construction the sequence of characters designating the start 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 start of a member (referred to as a "name/value pair" in JSON) having the specified |
|
Print onto the stream supplied at construction the sequence of characters designating the start of an object (referred to as an "object" in JSON). |
|
Print onto the stream supplied at construction the value corresponding to a null element. Return 0 on success and a non‐zero value otherwise. |
|
Print onto the stream supplied at construction the specified |
Created with MrDocs