Skip to main content

json_obj_get

Function json_obj_get 

Source
pub fn json_obj_get<'a>(object: &'a Value, key: &str) -> Option<&'a Value>
Expand description

Returns one object member without cloning it.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::json_obj_get can produce a value and None otherwise.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::json_obj_get(todo!(), "key");