Get this value as a Bool

require: self.is_bool

assert "true".to_json_value.to_bool
assert not "false".to_json_value.to_bool

Property definitions

json $ JsonValue :: to_bool
	# Get this value as a `Bool`
	#
	# require: `self.is_bool`
	#
	#     assert "true".to_json_value.to_bool
	#     assert not "false".to_json_value.to_bool
	fun to_bool: Bool do return value.as(Bool)
lib/json/dynamic.nit:146,2--152,43