ObjectJson.getStringMemberWithDefault

Convenience function that retrieves the string 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
string
getStringMemberWithDefault
(
string memberName
,)

Parameters

memberName string

the name of the object member

defaultValue string

the value to return if member_name is not valid

Return Value

Type: string

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