JsonValueExtensionsGetBooleanOrDefault Method

Overload List

GetBooleanOrDefault(JsonValue, JsonValueType) Gets the specified JsonValue as a Boolean value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Boolean; otherwise, returns , which is the default value of Boolean. This method allows interpreting numeric values as booleans where nonzero values are .
GetBooleanOrDefault(JsonValue, Boolean, JsonValueType) Gets the specified JsonValue as a Boolean value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Boolean; otherwise, returns defaultValue. This method allows interpreting numeric values as booleans where nonzero values are .

See Also