Search in sources :

Example 1 with UTF8DataInputJsonParser

use of com.fasterxml.jackson.core.json.UTF8DataInputJsonParser in project jackson-core by FasterXML.

the class TrailingCommasTest method assertEnd.

private void assertEnd(JsonParser p) throws IOException {
    // Issue #325
    if (!(p instanceof UTF8DataInputJsonParser)) {
        JsonToken next = p.nextToken();
        assertNull("expected end of stream but found " + next, next);
    }
}
Also used : UTF8DataInputJsonParser(com.fasterxml.jackson.core.json.UTF8DataInputJsonParser) JsonToken(com.fasterxml.jackson.core.JsonToken)

Aggregations

JsonToken (com.fasterxml.jackson.core.JsonToken)1 UTF8DataInputJsonParser (com.fasterxml.jackson.core.json.UTF8DataInputJsonParser)1