public static void readEndObjectToken(JsonParser jsonParser,
                                          String parentFieldName)
    throws IOException {
    readToken(jsonParser, parentFieldName, JsonToken.END_OBJECT);
  }
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.

@param jsonParser The JsonParser instance to be used
@param parentFieldName The name of the field
@throws IOException