get_int_member_with_default


Description:

[ Version ( since = "1.6" ) ]
public int64 get_int_member_with_default (string member_name, int64 default_value)

Convenience function that retrieves the integer value stored in member_name of this.

If member_name does not exist, does not contain a scalar value, or contains `null`, then default_value is returned instead.

Parameters:

this

a JSON object

member_name

the name of the object member

default_value

the value to return if member_name is not valid

Returns:

the integer value of the object's member, or the given default