Wt  4.11.1
Classes | Enumerations | Functions
Wt::Json Namespace Reference

Namespace for the JSON Library (Wt::Json). More...

Classes

class  Array
 A JSON array. More...
 
class  Object
 A JSON object. More...
 
class  ParseError
 A parse error. More...
 
class  TypeException
 Exception that indicates a type error. More...
 
class  Value
 A JSON value. More...
 

Enumerations

enum class  Type {
  Null , String , Bool , Number ,
  Object , Array
}
 Enumeration for the type of a JSON value. More...
 

Functions

void parse (const std::string &input, Value &result, bool validateUTF8=true)
 Parse function. More...
 
bool parse (const std::string &input, Value &result, ParseError &error, bool validateUTF8=true)
 Parse function. More...
 
void parse (const std::string &input, Object &result, bool validateUTF8=true)
 Parse function. More...
 
bool parse (const std::string &input, Object &result, ParseError &error, bool validateUTF8=true)
 Parse function. More...
 
void parse (const std::string &input, Array &result, bool validateUTF8=true)
 Parse function. More...
 
bool parse (const std::string &input, Array &result, ParseError &error, bool validateUTF8=true)
 Parse function. More...
 
std::string serialize (const Object &obj, int indentation=1)
 Serialization function for an Object. More...
 
std::string serialize (const Array &arr, int indentation=1)
 Serialization function for an Array. More...
 

Detailed Description

Namespace for the JSON Library (Wt::Json).