Skip to main content

object_value_at_path

Function object_value_at_path 

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

Returns a JSON value at a dotted object path.

§Parameters

§Returns

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

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::object_value_at_path("{}", std::path::Path::new("fixture.json"));