Skip to main content

json_find_string_in_section

Function json_find_string_in_section 

Source
pub fn json_find_string_in_section(
    text: &str,
    section: &str,
    key: &str,
) -> Option<String>
Expand description

Finds a string field inside a named JSON section.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::json_find_string_in_section 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_string_in_section.

§Examples

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