Represents a 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)</string,> |
Creates JSONObject by assigning keys and values from Dictionary<string, object="">.</string,> |
| 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()</keyvaluepair\<string,> |
Returns an enumerator that iterates through JSONObject. |
| public override String ToString() |
Overrides ToString method and return 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. |
- Operators
Definition | Description
-------------|--------------
public static implicit operator String(JSONObject value) | Returns the same value as ToString method.
public static implicit operator JSONObject(String value) | Returns the same value as Parse method.