Wt  4.11.1
Loading...
Searching...
No Matches
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 {
  Type::Null , Type::String , Type::Bool , Type::Number ,
  Type::Object , Type::Array
}
 Enumeration for the type of a JSON value. More...

Functions

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

Detailed Description

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