private List < Object > getCollectionValue ( JsonParser jsonParser ) throws IOException { LOG . info ( "Start parsing {} array" , jsonParser . getCurrentName ( ) ) ; List < Object > list = new ArrayList <> ( ) ; while ( jsonParser . nextToken ( ) != JsonToken . END_ARRAY ) { if ( jsonParser . getCurrentToken ( ) == JsonToken . START_OBJECT ) { Object embedded = getEmbeddedObject ( jsonParser ) ; list . add ( embedded ) ; } if ( ! "}" . equals ( jsonParser . getText ( ) ) ) { list . add ( jsonParser . getText ( ) ) ; } else { LOG . info ( "Array is over." ) ; } } return list ; }
Parse the complex values .