ScummVM API documentation
Common::JSONValue Class Reference

Public Member Functions

 JSONValue (const char *charValue)
 
 JSONValue (const String &stringValue)
 
 JSONValue (bool boolValue)
 
 JSONValue (double numberValue)
 
 JSONValue (long long int numberValue)
 
 JSONValue (const JSONArray &arrayValue)
 
 JSONValue (const JSONObject &objectValue)
 
 JSONValue (const JSONValue &source)
 
bool isNull () const
 
bool isString () const
 
bool isBool () const
 
bool isNumber () const
 
bool isIntegerNumber () const
 
bool isArray () const
 
bool isObject () const
 
const StringasString () const
 
bool asBool () const
 
double asNumber () const
 
long long int asIntegerNumber () const
 
const JSONArrayasArray () const
 
const JSONObjectasObject () const
 
size_t countChildren () const
 
bool hasChild (size_t index) const
 
JSONValuechild (size_t index)
 
bool hasChild (const char *name) const
 
JSONValuechild (const char *name)
 
Array< StringobjectKeys () const
 
String stringify (bool const prettyprint=false) const
 

Static Protected Member Functions

static JSONValueparse (const char **data)
 

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