JsonValueExtensionsGetInt32OrDefault Method

Overload List

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

See Also