get_length

Function get_length 

Source
pub fn get_length(value: &Value) -> Result<usize, Error>
Expand description

Get the length of a JSON array or a JSON object. Returns an Error if the value is not an array.