Menu ▾ ▴

JSONObject

Elvedin Hamzagic
There is a newer version of this page. You can find it here.

Represents a collection of key/value pairs.

Implements interface IEnumerable<KeyValuePair<String, JSONValue>>.

  • Constructors
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 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,>
  • Properties
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.
  • Methods
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.