private void assertEqualJson(String expected, String generated) {
        assertEquals("", validateJSON(expected));
        assertEquals("", validateJSON(generated));
        if (! JSON.equals(expected, generated)) {
            assertEquals(JSON.canonical(expected), JSON.canonical(generated));
        }
    }
Functional testing of {@link JsonRenderer}.

@author Steinar Knutsen
@author bratseth
container-search/src/test/java/com/yahoo/search/rendering/JsonRendererTestCase.java