29 #ifndef INCLUDE_OLA_WEB_JSONWRITER_H_ 30 #define INCLUDE_OLA_WEB_JSONWRITER_H_ 76 void Visit(
const JsonInt &value);
80 void VisitProperty(
const std::string &property,
const JsonValue &value);
87 std::ostream *m_output;
88 unsigned int m_indent;
89 std::string m_separator;
100 static const unsigned int DEFAULT_INDENT = 2;
105 #endif // INCLUDE_OLA_WEB_JSONWRITER_H_ The base class for JSON values.
Definition: Json.h:119
A signed 64bit int value.
Definition: Json.h:577
An unsigned 32bit int value.
Definition: Json.h:379
A raw value, useful if you want to cheat.
Definition: Json.h:842
static std::string AsString(const JsonValue &value)
Get the string representation of the JsonValue.
Definition: JsonWriter.cpp:38
A class used to visit Json values within a JsonObject.
Definition: Json.h:1215
static void Write(std::ostream *output, const JsonValue &value)
Write the string representation of the JsonValue to a ostream.
Definition: JsonWriter.cpp:33
The null value.
Definition: Json.h:811
A JSON object. JSON Objects are key : value mappings, similar to dictionaries in Python.
Definition: Json.h:890
A Bool value.
Definition: Json.h:768
An array of JSON values. Arrays in JSON can contain values of different types.
Definition: Json.h:1033
A string value.
Definition: Json.h:279
An unsigned 64bit int value.
Definition: Json.h:510
A signed 32bit int value.
Definition: Json.h:445
A double value.
Definition: Json.h:649
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
A class to serialize a JSONValue to text.
Definition: JsonWriter.h:49
The const interface for the JsonValueVisitor class.
Definition: Json.h:99
Basic data types used to represent elements in a JSON document.