pub fn get_length(value: &Value) -> Result<usize, Error>
Get the length of a JSON array or a JSON object. Returns an Error if the value is not an array.