ObjectJson.getDoubleMemberWithDefault

Convenience function that retrieves the floating point 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
double
getDoubleMemberWithDefault
(
string memberName
,)

Parameters

memberName string

the name of the object member

defaultValue double

the value to return if member_name is not valid

Return Value

Type: double

the floating point value of the object's member, or the given default