pub fn as_array<J: Json>(json: &J) -> (AsArray<'_, J>, usize)
Converts the given json value into an array if it is not already.
json
Returns a tuple providing an iterator over the items of the array, and the size of the array.