get_boolean_with_default


Description:

[ Version ( since = "2.1.1" ) ]
public bool get_boolean_with_default (string key, out bool value, bool value_default) throws Error

Gets a boolean from a JSON object.

An error is returned if key is not the correct type.

Parameters:

this

a JsonObject

key

dictionary key

value

boolean value

value_default

value to return if key is not found, typically false

Returns:

true if value was parsed as an integer