Skip to main content

expect_object

Function expect_object 

Source
pub fn expect_object<'a>(
    value: &'a Value,
    path: &Path,
) -> Result<&'a Object, DecodeError>
Expand description

Reads a non-empty JSON object.

ยงErrors

Returns DecodeError when value is not an object or is empty.