JSONObject Methods |
The JSONObject type exposes the following members.
Name | Description | |
---|---|---|
Add(KeyValuePairString, Object) |
Adds a key-value pair to the object.
| |
Add(String, Object) |
Adds a key-value pair to the object.
| |
Clear |
Clears all the keys and values from the object.
| |
Contains |
Calculates whether the object contains the key in the given key-value pair.
| |
ContainsKey |
Calculates whether the object contains the given key.
| |
CopyTo |
Copies the key-value pairs in this object to the supplied array, starting at the given
index.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Get(String, Object) |
Gets the value associated with the specified key (CLR object's field or property name) regardless of the type.
If the specified key is not found, returns the given default value.
| |
GetT(String, T) |
Gets the value associated with the specified key (CLR object's field or property name).
If the specified key is not found, returns the given default value.
| |
GetEnumerator |
Returns an enumerator that iterates through the CLR object's fields or methods and
their values.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Remove(KeyValuePairString, Object) |
Removes the key (CLR object's field or property name) in the given key-value pair from
this object.
| |
Remove(String) |
Removes the given key (CLR object's field or property name) from this object.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetValue |
Gets the value associated with the specified key (CLR object's field or property name).
|