JsonDynamicGetOrDefault Method (String, JsonValue) |
Gets value stored under given key and returns it as dynamic type. If not such member exists than defaultValue
is returned.
Namespace: Dextronet.JsonieAssembly: Dextronet.Jsonie (in Dextronet.Jsonie.dll) Version: 1.0.0.0
Syntax public JsonDynamic GetOrDefault(
string key,
JsonValue defaultValue = null
)
Public Function GetOrDefault (
key As String,
Optional defaultValue As JsonValue = Nothing
) As JsonDynamic
Parameters
- key
- Type: SystemString
The key under which is member stored. - defaultValue (Optional)
- Type: Dextronet.JsonieJsonValue
Default value returned in case no such member exists.
Return Value
Type:
JsonDynamicValue stored under given key as dynamic.
Exceptions See Also