API documentation  2.0rc1
Public Member Functions | List of all members
client::JSON Class Reference

#include <clientlib.h>

Inherits client::Object.

Public Member Functions

Objectparse (const String &text)
 
Objectparse (const String &text, EventListener *reviver)
 
Stringstringify (Object *value)
 
Stringstringify (Object *value, EventListener *replacer)
 
Stringstringify (Object *value, EventListener *replacer, const String &space)
 
Stringstringify (Object *value, EventListener *replacer, double space)
 
Stringstringify (Object *value, Array *replacer)
 
Stringstringify (Object *value, Array *replacer, const String &space)
 
Stringstringify (Object *value, Array *replacer, double space)
 
- Public Member Functions inherited from client::Object
 Object ()
 
template<typename T >
valueOf ()
 
 operator double () const
 
Objectoperator[] (const client::String &name) const
 
void set_ (const client::String &name, Object *v)
 
template<typename T , typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
void set_ (const client::String &name, T v)
 
bool hasOwnProperty (const client::String &name)
 

Member Function Documentation

◆ parse() [1/2]

Object* client::JSON::parse ( const String text)

◆ parse() [2/2]

Object* client::JSON::parse ( const String text,
EventListener reviver 
)

◆ stringify() [1/7]

String* client::JSON::stringify ( Object value)

◆ stringify() [2/7]

String* client::JSON::stringify ( Object value,
EventListener replacer 
)

◆ stringify() [3/7]

String* client::JSON::stringify ( Object value,
EventListener replacer,
const String space 
)

◆ stringify() [4/7]

String* client::JSON::stringify ( Object value,
EventListener replacer,
double  space 
)

◆ stringify() [5/7]

String* client::JSON::stringify ( Object value,
Array replacer 
)

◆ stringify() [6/7]

String* client::JSON::stringify ( Object value,
Array replacer,
const String space 
)

◆ stringify() [7/7]

String* client::JSON::stringify ( Object value,
Array replacer,
double  space 
)