Game Framework
GameFramework.Helper.JSONObject Class Reference
Inheritance diagram for GameFramework.Helper.JSONObject:

Public Member Functions

 JSONObject ()
 
 JSONObject (JSONObject other)
 Construct a copy of the given JSONObject. More...
 
bool ContainsKey (string key)
 
JSONValue GetValue (string key)
 
string GetString (string key)
 
double GetNumber (string key)
 
JSONObject GetObject (string key)
 
bool GetBoolean (string key)
 
JSONArray GetArray (string key)
 
void Add (string key, JSONValue value)
 
void Add (KeyValuePair< string, JSONValue > pair)
 
override string ToString ()
 
Returns
String representation of this 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]
 

Constructor & Destructor Documentation

GameFramework.Helper.JSONObject.JSONObject ( )
GameFramework.Helper.JSONObject.JSONObject ( JSONObject  other)

Construct a copy of the given JSONObject.

Parameters
other

Member Function Documentation

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

Empty this JSONObject of all values.

bool GameFramework.Helper.JSONObject.ContainsKey ( string  key)
Parameters
key
Returns
Does 'key' exist in this object.
JSONArray GameFramework.Helper.JSONObject.GetArray ( string  key)
bool GameFramework.Helper.JSONObject.GetBoolean ( string  key)
IEnumerator<KeyValuePair<string, JSONValue> > GameFramework.Helper.JSONObject.GetEnumerator ( )
double GameFramework.Helper.JSONObject.GetNumber ( string  key)
JSONObject GameFramework.Helper.JSONObject.GetObject ( string  key)
string GameFramework.Helper.JSONObject.GetString ( string  key)
JSONValue GameFramework.Helper.JSONObject.GetValue ( string  key)
static JSONObject GameFramework.Helper.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 GameFramework.Helper.JSONObject.Remove ( string  key)

Remove the JSONValue attached to the given key.

Parameters
key
override string GameFramework.Helper.JSONObject.ToString ( )

Returns
String representation of this JSONObject

Property Documentation

JSONValue GameFramework.Helper.JSONObject.this[string key]
getset

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