private void assertEqualJson(byte[] expected, byte[] generated) throws IOException {
        var m = Jackson.mapper();
        Map<?, ?> exp = m.readValue(expected, Map.class);
        Map<?, ?> gen = m.readValue(generated, Map.class);
        if (! exp.equals(gen)) {
            System.err.println("expected:  "+Utf8.toString(expected));
            System.err.println("generated: "+Utf8.toString(generated));
        }
        assertEquals(exp, gen);
    }
Functional tests for com.yahoo.document.json.JsonWriter.

@author Steinar Knutsen
document/src/test/java/com/yahoo/document/json/JsonWriterTestCase.java