Don't compare JSON strings

Comparing JSON strings is unpredictable since hash key ordering is
implemented differently across Ruby versions.