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