Unity GAF Player  1.0
Tools for playing GAF animation inside Unity
 All Classes Files Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Static Public Member Functions | Properties | List of all members
JSONObject Class Reference

JSON object. More...

Inheritance diagram for JSONObject:

Public Member Functions

 JSONObject ()
 Initializes a new instance of the JSONObject class. More...
 
 JSONObject (JSONObject other)
 Construct a copy of the given JSONObject. More...
 
bool ContainsKey (string key)
 
Parameters
key
Returns
Does 'key' exist in this object.
More...
 
JSONValue GetValue (string key)
 Gets the value. More...
 
string GetString (string key)
 Gets the string. More...
 
double GetNumber (string key)
 Gets the number. More...
 
JSONObject GetObject (string key)
 Gets the object. More...
 
bool GetBoolean (string key)
 
JSONArray GetArray (string key)
 
void Add (string key, JSONValue value)
 
void Add (KeyValuePair< string, JSONValue > pair)
 
override string ToString ()
 Returns a System.String that represents the current JSONObject. More...
 
IEnumerator< KeyValuePair
< string, JSONValue > > 
GetEnumerator ()
 
void Clear ()
 Empty this JSONObject of all values. More...
 
void Remove (string key)
 Remove the JSONValue attached to the given key. More...
 

Static Public Member Functions

static JSONObject Parse (string jsonString)
 Attempt to parse a string into a JSONObject. More...
 

Properties

JSONValue this[string key] [get, set]
 

Detailed Description

JSON object.

Constructor & Destructor Documentation

JSONObject.JSONObject ( )

Initializes a new instance of the JSONObject class.

JSONObject.JSONObject ( JSONObject  other)

Construct a copy of the given JSONObject.

Parameters
other

Member Function Documentation

void JSONObject.Add ( string  key,
JSONValue  value 
)
void JSONObject.Add ( KeyValuePair< string, JSONValue pair)
void JSONObject.Clear ( )

Empty this JSONObject of all values.

bool JSONObject.ContainsKey ( string  key)

Parameters
key
Returns
Does 'key' exist in this object.

JSONArray JSONObject.GetArray ( string  key)
bool JSONObject.GetBoolean ( string  key)
IEnumerator<KeyValuePair<string, JSONValue> > JSONObject.GetEnumerator ( )
double JSONObject.GetNumber ( string  key)

Gets the number.

Returns
The number.
Parameters
keyKey.
JSONObject JSONObject.GetObject ( string  key)

Gets the object.

Returns
The object.
Parameters
keyKey.
string JSONObject.GetString ( string  key)

Gets the string.

Returns
The string.
Parameters
keyKey.
JSONValue JSONObject.GetValue ( string  key)

Gets the value.

Returns
The value.
Parameters
keyKey.
static JSONObject JSONObject.Parse ( string  jsonString)
static

Attempt to parse a string into a JSONObject.

Parameters
jsonString
Returns
A new JSONObject or null if parsing fails.
void JSONObject.Remove ( string  key)

Remove the JSONValue attached to the given key.

Parameters
key
override string JSONObject.ToString ( )

Returns a System.String that represents the current JSONObject.

Returns
A System.String that represents the current JSONObject.

Property Documentation

JSONValue JSONObject.this[string key]
getset

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