JsonValueExtensionsGetSingleOrDefault Method

Overload List

GetSingleOrDefault(JsonValue, JsonValueType) Gets the specified JsonValue as a Single value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Single; otherwise, returns 0.0.
GetSingleOrDefault(JsonValue, Single, JsonValueType) Gets the specified JsonValue as a Single value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Single; otherwise, returns defaultValue.

See Also