public static void readEndObjectToken ( JsonParser jsonParser , String parentFieldName ) throws IOException { readToken ( jsonParser , parentFieldName , JsonToken . END_OBJECT ) ; }
This is a helper method that reads a JSON token using a JsonParser instance and throws an exception if the next token is not END_OBJECT .