pub fn find_array_item_by_string_field(
text: &str,
section: &str,
field: &str,
expected: &str,
) -> Option<String>Expand description
Finds an array item by a string field.
§Parameters
text: Input consumed bycrate::runtime::json_commands::find_array_item_by_string_field.section: Input consumed bycrate::runtime::json_commands::find_array_item_by_string_field.field: Input consumed bycrate::runtime::json_commands::find_array_item_by_string_field.expected: Input consumed bycrate::runtime::json_commands::find_array_item_by_string_field.
§Returns
Returns Some when crate::runtime::json_commands::find_array_item_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::find_array_item_by_string_field.
§Examples
ⓘ
let _result = pharos_native::runtime::json_commands::find_array_item_by_string_field("{}", "items", "field", "value");§Related
crate::runtime::json_commandsfor adjacent helpers that share the same runtime surface.