pub fn as_array<J: Json>(json: &J) -> (AsArray<'_, J>, usize)
Expand description

Converts the given json value into an array if it is not already.

Returns a tuple providing an iterator over the items of the array, and the size of the array.