ObjectJson.getIntMemberWithDefault

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

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

class ObjectJson
long
getIntMemberWithDefault
(
string memberName
,)

Parameters

memberName string

the name of the object member

defaultValue long

the value to return if member_name is not valid

Return Value

Type: long

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