Click or drag to resize

JSONObject Class

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
An object that represents a CLR object in a format that can be easily serialized to a string and deserialized from a string. Each field or property in the CLR object is represented by a key-value pair. The key is the name of the field or property. Each value must be one of the following:
  • null
  • another JSONObject
  • a JSONArray
  • a string
  • a primitive type
Inheritance Hierarchy
SystemObject
  Telogis.GeoBase.SerializationJSONObject

Namespace:  Telogis.GeoBase.Serialization
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public class JSONObject : IDictionary<string, Object>, 
	ICollection<KeyValuePair<string, Object>>, IEnumerable<KeyValuePair<string, Object>>, 
	IEnumerable

The JSONObject type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
The count of key-value pairs in this object.
Public propertyIsReadOnly
Whether this object is read-only. Always false.
Public propertyItem
The value associated with the specified key (CLR object's field or property name).
Public propertyKeys
The keys (CLR object's field or property names) contained in this object.
Public propertyValues
The values (CLR object's field or property values) contained in this object.
Top
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