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
array: Input consumed bycrate::runtime::json_commands::json_find_object_by_string_field.field_name: Input consumed bycrate::runtime::json_commands::json_find_object_by_string_field.expected_value: Input consumed bycrate::runtime::json_commands::json_find_object_by_string_field.
§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!());§Related
crate::runtime::json_commandsfor adjacent helpers that share the same runtime surface.