public static void assertJsonEquals(String inputJson, String expectedJson) {
        try {
            JsonNode expected = mapper.readTree(expectedJson);
            JsonNode actual = mapper.readTree(inputJson);
            JunitCompat.assertEquals(expected, actual);
        } catch (JsonProcessingException e) {
            throw new RuntimeException("Exception when comparing json strings." , e);
        }
    }
Structurally compare two JSON encoded strings
testutil/src/main/java/com/yahoo/test/json/JsonTestHelper.java