Skip to main content

json_find_object_by_string_field

Function json_find_object_by_string_field 

Source
pub fn json_find_object_by_string_field<'a>(
    array: &'a Value,
    field_name: &str,
    expected_value: &str,
) -> Option<&'a Value>
Expand description

Returns a backend record from an array of JSON objects by exact string field.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::json_find_object_by_string_field can produce a value and None otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::json_commands::json_find_object_by_string_field.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::json_find_object_by_string_field(todo!(), todo!(), todo!());