JsonObject Methods |
The JsonObject type exposes the following members.
Name | Description | |
---|---|---|
Add(KeyValuePairString, JsonValue) |
Adds an item to the collection.
| |
Add(String, JsonValue) |
Adds an member with the specified key and value to this object.
| |
AddAndGetTJsonValue |
Adds new member into object and returns added value (actually the passed parameter). This is handy for one-line
adding and variable initalization:
Examples
Dim myArray = myObject.AddAndGet("array", new JsonArray())
| |
AddArray |
Adds an empty array member and returns its instance.
| |
AddObject |
Adds an empty object property and returns its instance.
| |
Clear |
Removes all members from the object.
| |
Contains |
Determines whether the collection contains a specific value.
| |
ContainsKey |
Tests whether the object contains a member with the specified key. It does not check the value of the member
which might be null.
| |
ContainsKeyNotNull |
Tests whether the object contains a member with the specified key and which is not null.
| |
CopyTo |
Copies the elements of the collection to an Array, starting at a particular Array index.
| |
Equals(Object) |
Determines whether current object is equal to another object.
(Overrides ObjectEquals(Object).) | |
Equals(JsonDynamic) |
Determines whether current object is equal to another object.
| |
Equals(JsonObject) |
Determines whether current object is equal to another object.
| |
GetEnumerator |
Returns an enumerator that iterates through the object.
| |
GetHashCode |
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.) | |
GetOrAddTJsonValue |
Gets the member stored under given key and casts it to desired type. If key does not exist specified value is
stored as a new member.
| |
GetOrAddArray |
Gets value stored under given key and casts it to array. If key does not exist new empty array is added to the
specified key.
| |
GetOrAddObject |
Gets value stored under given key and casts it to object. If key does not exist new empty object is added to
the specified key.
| |
GetOrDefault(String, Boolean) |
Gets value stored under given key and casts it to boolean. If not such member exists
than defaultValue is returned.
| |
GetOrDefault(String, Decimal) |
Gets value stored under given key and casts it to decimal. If not such member exists
than defaultValue is returned.
| |
GetOrDefault(String, Double) |
Gets value stored under given key and casts it to decimal. If not such member exists
than defaultValue is returned.
| |
GetOrDefault(String, Int32) |
Gets value stored under given key and casts it to decimal. If not such member exists
than defaultValue is returned.
| |
GetOrDefault(String, Int64) |
Gets value stored under given key and casts it to decimal. If not such member exists
than defaultValue is returned.
| |
GetOrDefault(String, Single) |
Gets value stored under given key and casts it to decimal. If not such member exists
than defaultValue is returned.
| |
GetOrDefault(String, String) |
Gets value stored under given key and casts it to String. If not such member exists
than defaultValue is returned.
| |
GetOrDefaultTJsonValue(String, TJsonValue) |
Gets value stored under given key and casts it to desired type. If not such member exists
than defaultValue is returned.
| |
Remove(KeyValuePairString, JsonValue) |
Removes the first occurrence of a specific object from the collection.
| |
Remove(String) |
Removes the member with the specified key from the object.
| |
TryGetValue |
Gets the value associated with the specified key.
|
Name | Description | |
---|---|---|
AsArray |
Casts (CType) value to JsonObject.
(Defined by JsonValueExtensions.) | |
AsBoolean |
Casts (CType) value to JsonBool.
(Defined by JsonValueExtensions.) | |
AsNumber |
Casts (CType) value to JsonNumber.
(Defined by JsonValueExtensions.) | |
AsObject |
Casts (CType) value to JsonObject.
(Defined by JsonValueExtensions.) | |
AsString |
Casts (CType) value to JsonString.
(Defined by JsonValueExtensions.) | |
ToDynamic |
Wraps given json value to dynamic type.
(Defined by JsonValueExtensions.) |