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