When I get an array of objects in JSON response, they might be represent in a different order.
Sometimes I get this
JSON.parse(response.body) # => [{"a" => "b"}, {"c" => "d"}]
or this
JSON.parse(response.body) # => [{"c" => "d"}, {"a" => "b"}]
But for me both results are correct. What is the easiest way to test which objects I have in response regardless of their order?