public static void nextField( @Nonnull JsonParser parser, @Nonnull String fieldName ) throws IOException {
nextToken( parser, JsonToken.FIELD_NAME );
String currentName = parser.getCurrentName();
if ( !fieldName.equals( currentName ) ) {
throw new JsonParseException( "Invalid field. Expected <" + fieldName + "> but was <" + currentName + ">", parser.getCurrentLocation() );
}
}