public final String skipToKey ( Set < String > keysToFind ) throws IOException { JsonToken curToken = startParsingObjectOrArray ( ) ; while ( curToken == JsonToken . FIELD_NAME ) { String key = getText ( ) ; nextToken ( ) ; if ( keysToFind . contains ( key ) ) { return key ; } skipChildren ( ) ; curToken = nextToken ( ) ; } return null ; }
Skips the values of all keys in the current object until it finds one of the given keys .