Skip to main content

get_object

Function get_object 

Source
pub fn get_object(
    m: &HashMap<String, Value>,
    key: &str,
) -> Result<Map<String, Value>, String>
Expand description

Extracts an Object parameter value from the arguments map.

Returns Err if the key is missing or not an Object.