private void skipValue(JsonParser p) throws JsonParseException, IOException {
    JsonToken valueToken = p.nextToken();

    if ((valueToken == JsonToken.START_ARRAY) || (valueToken == JsonToken.START_OBJECT)){
      // if the currently read token is a beginning of an array or object, move stream forward
      // skipping any child tokens till we're at the corresponding END_ARRAY or END_OBJECT token
      p.skipChildren();
    }
    // At the end of this function, the stream should be pointing to the last token that
    // corresponds to the value being skipped. This way, the next call to nextToken
    // will advance it to the next field name.
  }
private void skipValue ( JsonParser p ) throws JsonParseException , IOException { JsonToken valueToken = p . nextToken ( ) ; if ( ( valueToken == JsonToken . START_ARRAY ) || ( valueToken == JsonToken . START_OBJECT ) ) { p . skipChildren ( ) ; } }
Utility method to extract (and forget) the next value token from the JsonParser,
as a whole. The reason this function gets called is to yank out the next value altogether,
because it corresponds to a field name that we do not recognize, and thus, do not have
a schema/type for. Thus, this field is to be ignored.
@throws IOException
@throws JsonParseException