We have some cool tools like "JSONAssert" (http://jsonassert.skyscreamer.org/) that does stuff like that without making tests brittle like this one.