@SuppressWarnings("unchecked")
    private void assertEqualJsonContent(String expected, String generated) throws IOException {
        assertEquals("", validateJSON(expected));
        assertEquals("", validateJSON(generated));

        var m = Jackson.mapper();
        Map<String, Object> exp = m.readValue(expected, Map.class);
        Map<String, Object> gen = m.readValue(generated, Map.class);
        assertEquals(exp, gen);
    }
Functional testing of {@link JsonRenderer}.

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