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;
Basic data types used to represent elements in a JSON document.
An array of JSON values. Arrays in JSON can contain values of different types.
Definition Json.h:1043
A Bool value.
Definition Json.h:774
A double value.
Definition Json.h:654
A signed 64bit int value.
Definition Json.h:581
A signed 32bit int value.
Definition Json.h:447
The null value.
Definition Json.h:818
A JSON object. JSON Objects are key : value mappings, similar to dictionaries in Python.
Definition Json.h:899
A class used to visit Json values within a JsonObject.
Definition Json.h:1226
A raw value, useful if you want to cheat.
Definition Json.h:850
A string value.
Definition Json.h:279
An unsigned 64bit int value.
Definition Json.h:513
An unsigned 32bit int value.
Definition Json.h:380
The const interface for the JsonValueVisitor class.
Definition Json.h:99
The base class for JSON values.
Definition Json.h:119
A class to serialize a JSONValue to text.
Definition JsonWriter.h:50
static std::string AsString(const JsonValue &value)
Get the string representation of the JsonValue.
Definition JsonWriter.cpp:38
static void Write(std::ostream *output, const JsonValue &value)
Write the string representation of the JsonValue to a ostream.
Definition JsonWriter.cpp:33
The namespace containing all OLA symbols.
Definition Credentials.cpp:44