Json Box  0.6.1
This is a JSON C++ library. It can write and read JSON files with ease and speed.
Namespaces | Classes | Typedefs | Functions
JsonBox Namespace Reference

Namespaces

 Literals
 
 Numbers
 
 Strings
 
 Structural
 
 Whitespace
 

Classes

class  Array
 
class  Convert
 
class  Escaper
 
class  IndentCanceller
 
class  Indenter
 
class  JsonParsingError
 
class  JsonWritingError
 
class  Object
 
class  OutputFilter
 
class  SolidusEscaper
 
class  Value
 

Typedefs

typedef std::basic_string< int32_t > String32
 

Functions

JSONBOX_EXPORT std::ostream & operator<< (std::ostream &output, const Array &a)
 
JSONBOX_EXPORT std::ostream & operator<< (std::ostream &output, const Object &o)
 
JSONBOX_EXPORT std::ostream & operator<< (std::ostream &output, const Value &v)
 

Typedef Documentation

typedef std::basic_string<int32_t> JsonBox::String32

Function Documentation

std::ostream & JsonBox::operator<< ( std::ostream &  output,
const Array a 
)

Output operator overload for the JSON array. Outputs in standard JSON format. Indents the output and esapes the minimum characters.

Parameters
outputOutput stream in which to write the array's JSON.
aArray to output into the stream.
Returns
Output stream filled with the JSON code.
std::ostream & JsonBox::operator<< ( std::ostream &  output,
const Object o 
)

Output operator overload for the JSON object. Outputs in standard JSON format. Indents the output and escapes the minimum characters.

Parameters
outputOutput stream in which to write the object's JSON.
oObject to output into the stream.
Returns
Output stream filled with the JSON code.
std::ostream & JsonBox::operator<< ( std::ostream &  output,
const Value v 
)

Output operator overload. Outputs the value as valid JSON. Does not do any indentation.

Parameters
outputOutput stream in which the valid JSON is written.
vValue to be output in the stream.
Returns
Output parameter with the valud json written into it.