Skip to main content

json_value_truthy

Function json_value_truthy 

Source
pub fn json_value_truthy(value: &Value) -> bool
Expand description

Applies the native truthiness contract to a JSON value.

§Parameters

§Returns

Returns true when the condition checked by crate::runtime::json_commands::json_value_truthy holds and false otherwise.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::json_value_truthy("value");