Skip to main content

json_find_string

Function json_find_string 

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

Finds a string field in a bounded JSON document.

§Parameters

§Returns

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

§Examples

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