JsonObjectGetOrDefault Method (String, Boolean) |
Gets value stored under given key and casts it to boolean. 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 JsonBool GetOrDefault(
string key,
bool defaultValue
)
Public Function GetOrDefault (
key As String,
defaultValue As Boolean
) As JsonBool
Parameters
- key
- Type: SystemString
The key under which is value stored. - defaultValue
- Type: SystemBoolean
Default value returned in case no such member exists.
Return Value
Type:
JsonBoolValue stored under given key casted to boolean.
Exceptions See Also