| JsonDynamic Structure |
Namespace: Dextronet.Jsonie
The JsonDynamic type exposes the following members.
| Name | Description | |
|---|---|---|
| JsonDynamic |
Creates new dynamic wrapper around specified JsonValue.
|
| Name | Description | |
|---|---|---|
| Count |
Gets the number of items in array or members in object of the dynamic type.
| |
| IsArray |
Tests if this is JSON array.
| |
| IsBoolean |
Tests if this is JSON boolean.
| |
| IsNull |
Tests if this is JSON null.
| |
| IsNumber |
Test if this is JSON number.
| |
| IsObject |
Tests if this is JSON object.
| |
| IsScalar |
Tests if this is JSON string or number or boolean or null.
| |
| IsString |
Tests if this is JSON string.
| |
| ItemInt32 |
Gets the item stored on given index.
| |
| ItemString |
Gets the memeber indexed by given key.
| |
| Value |
Gets the wrapped value.
|
| Name | Description | |
|---|---|---|
| Add(JsonValue) |
Adds an items to the end of the array.
| |
| Add(String, JsonValue) |
Adds an member with the specified key to this object.
| |
| AddArray |
Adds an empty array to the end of the array and returns its instance.
| |
| AddArray(String) |
Adds an empty array property and returns it's instance.
| |
| AddObject |
Adds an empty object and returns its instance.
| |
| AddObject(String) |
Adds an empty object property and returns its instance.
| |
| AddRange |
Adds the values of the specified collection to the end of the array.
| |
| 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.
| |
| Equals(Object) |
Determines whether current object is equal to another object.
(Overrides ValueTypeEquals(Object).) | |
| Equals(JsonDynamic) |
Determines whether current object is equal to another object.
| |
| Equals(JsonValue) |
Determines whether current object is equal to another object.
| |
| GetHashCode |
Serves as a hash function for a particular type.
(Overrides ValueTypeGetHashCode.) | |
| GetOrAdd(String, JsonDynamic) |
Gets the member stored under given key. If key does not exist provided value is stored as new member.
| |
| GetOrAdd(String, JsonValue) |
Gets the member stored under given key. If key does not exist provided value is stored as new member.
| |
| GetOrDefault(String, JsonDynamic) |
Gets value stored under given key and casts it to dynamic type. If not such member exists than defaultValue
is returned.
| |
| GetOrDefault(String, JsonValue) |
Gets value stored under given key and returns it as dynamic type. If not such member exists than defaultValue
is returned.
| |
| Insert |
Inserts an value into the array at the specified index.
| |
| InsertArray |
Inserts an empty array at the specified index and returns its instance.
| |
| InsertObject |
Adds an empty object at the specified index and returns its instance.
| |
| InsertRange |
Inserts the values of a collection into the array at the specified index.
| |
| ToJson |
Gets to JSON encoded string representing this object.
|
| Name | Description | |
|---|---|---|
| Equality |
Test whether values of its operands are equal.
| |
| (JsonDynamic to JsonValue) |
Performs an explicit conversion from JsonDynamic to JsonValue.
| |
| (JsonValue to JsonDynamic) |
Performs an explicit conversion from JsonValue to JsonDynamic.
| |
| (Boolean to JsonDynamic) |
Performs an implicit conversion from Boolean to JsonDynamic.
| |
| (Decimal to JsonDynamic) |
Performs an implicit conversion from Decimal to JsonDynamic.
| |
| (Double to JsonDynamic) |
Performs an implicit conversion from Double to JsonDynamic.
| |
| (Int32 to JsonDynamic) |
Performs an implicit conversion from Int32 to JsonDynamic.
| |
| (Int64 to JsonDynamic) |
Performs an implicit conversion from Int64 to JsonDynamic.
| |
| (NullableBoolean to JsonDynamic) |
Performs an implicit conversion from nullable Boolean to JsonDynamic.
| |
| (NullableDecimal to JsonDynamic) |
Performs an implicit conversion from nullable Decimal to JsonDynamic.
| |
| (NullableDouble to JsonDynamic) |
Performs an implicit conversion from nullable Double to JsonDynamic.
| |
| (NullableInt32 to JsonDynamic) |
Performs an implicit conversion from Int32 to JsonDynamic.
| |
| (NullableInt64 to JsonDynamic) |
Performs an implicit conversion from nullable Int64 to JsonDynamic.
| |
| (NullableSingle to JsonDynamic) |
Performs an implicit conversion from nullable Single to JsonDynamic.
| |
| (Single to JsonDynamic) |
Performs an implicit conversion from Single to JsonDynamic.
| |
| (String to JsonDynamic) |
Performs an implicit conversion from String to JsonDynamic.
| |
| Inequality |
Test whether values of its operands are inequal.
|
| Name | Description | |
|---|---|---|
| ToStatic |
Returns the value of the dynamic wrapper.
(Defined by JsonDynamicExtensions.) |