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 String & asString () const
 
bool asBool () const
 
double asNumber () const
 
long long int asIntegerNumber () const
 
const JSONArray & asArray () const
 
const JSONObject & asObject () const
 
size_t countChildren () const
 
bool hasChild (size_t index) const
 
JSONValue * child (size_t index)
 
bool hasChild (const char *name) const
 
JSONValue * child (const char *name)
 
Array< String > objectKeys () const
 
String stringify (bool const prettyprint=false) const
 

Static Protected Member Functions

static JSONValue * parse (const char **data)
 

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