Represents an unordered collection of key/value pairs.
Implements interface IEnumerable<KeyValuePair<String, JSONValue>>.
Definition |
Description |
public JSONObject(Object[,] data) |
Creates JSONObject from double array. It has to be an array of array of two elements, first element represents a key and has to be a String, and second value, which can be of any type. |
public JSONObject(Dictionary<String, Object=""> data) |
Creates JSONObject by assigning keys and values from Dictionary<String, Object="">. |
Definition |
Description |
public Int32 Count |
Gets the number of entries. |
public JSONValue this[String key] |
Gets or set the value associated with the given key. |
Definition |
Description |
public bool Remove(String key) |
Removes entry associated with specified key and returns true if entry is found. |
public IEnumerator<KeyValuePair<String, JSONValue="">> GetEnumerator() |
Returns an enumerator that iterates through JSONObject. |
public override String ToString() |
Overrides ToString method and returns JSON string representation of this instance. |
public static JSONObject Parse(String data) |
Parses JSON string and returns newly created JSONObject instance, or null if input string is not a valid JSON. |
Definition |
Description |
public static implicit operator String(JSONObject value) |
Creates string representation of JSONObject by calling ToString method. |
public static implicit operator JSONObject(String value) |
Creates JSONObject from JSON string by calling Parse method. |