private List < String > parseRows ( JsonParser jp , List < String > result ) throws IOException { while ( jp . nextToken ( ) == JsonToken . START_OBJECT ) { while ( jp . nextToken ( ) == JsonToken . FIELD_NAME ) { String fieldName = jp . getCurrentName ( ) ; jp . nextToken ( ) ; if ( "id" . equals ( fieldName ) ) { result . add ( jp . getText ( ) ) ; } else { jp . skipChildren ( ) ; } } } return result ; }
The token is required to be on the START_ARRAY value for rows .