Click or drag to resize

JSONObject Methods

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release

The JSONObject type exposes the following members.

Methods
  NameDescription
Public methodAdd(KeyValuePairString, Object)
Adds a key-value pair to the object.
Public methodAdd(String, Object)
Adds a key-value pair to the object.
Public methodClear
Clears all the keys and values from the object.
Public methodContains
Calculates whether the object contains the key in the given key-value pair.
Public methodContainsKey
Calculates whether the object contains the given key.
Public methodCopyTo
Copies the key-value pairs in this object to the supplied array, starting at the given index.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGet(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.
Public methodGetT(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.
Public methodGetEnumerator
Returns an enumerator that iterates through the CLR object's fields or methods and their values.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemove(KeyValuePairString, Object)
Removes the key (CLR object's field or property name) in the given key-value pair from this object.
Public methodRemove(String)
Removes the given key (CLR object's field or property name) from this object.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetValue
Gets the value associated with the specified key (CLR object's field or property name).
Top
See Also