Open Lighting Architecture  Latest Git
Static Public Member Functions | List of all members
ola::web::JsonWriter Class Reference

Detailed Description

A class to serialize a JSONValue to text.

Inheritance diagram for ola::web::JsonWriter:
Inheritance graph
[legend]
Collaboration diagram for ola::web::JsonWriter:
Collaboration graph
[legend]

Static Public Member Functions

static void Write (std::ostream *output, const JsonValue &value)
 Write the string representation of the JsonValue to a ostream. More...
 
static std::string AsString (const JsonValue &value)
 Get the string representation of the JsonValue. More...
 

Additional Inherited Members

Member Function Documentation

◆ AsString()

string ola::web::JsonWriter::AsString ( const JsonValue value)
static

Get the string representation of the JsonValue.

Parameters
valuethe JsonValue to serialize.

◆ Write()

void ola::web::JsonWriter::Write ( std::ostream *  output,
const JsonValue value 
)
static

Write the string representation of the JsonValue to a ostream.

Parameters
outputthe ostream to write to
valuethe JsonValue to serialize.

The documentation for this class was generated from the following files: