Skip to main content

json_value_equals

Function json_value_equals 

Source
pub fn json_value_equals(text: &str, key: &str, expected: &str) -> bool
Expand description

Compares one JSON field with exact text.

§Parameters

§Returns

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

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::json_value_equals("{}", "key", "value");