get_boolean_member_with_default


Description:

[ Version ( since = "1.6" ) ]
public bool get_boolean_member_with_default (string member_name, bool default_value)

Convenience function that retrieves the boolean 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 this member

default_value

the value to return if member_name is not valid

Returns:

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




2022 vala-language.org