private void process ( JsonParser jsonParser ) throws IOException , ODataUnmarshallingException { if ( jsonParser . getCurrentToken ( ) == JsonToken . FIELD_NAME ) { LOG . info ( "Starting to parse {} token" , jsonParser . getCurrentName ( ) ) ; String key = jsonParser . getCurrentName ( ) ; jsonParser . nextToken ( ) ; JsonToken token = jsonParser . getCurrentToken ( ) ; if ( token == JsonToken . START_ARRAY ) { if ( JsonConstants . VALUE . equals ( key ) ) { throw new ODataUnmarshallingException ( "Feed is not supported" ) ; } values . put ( key , getCollectionValue ( jsonParser ) ) ; } else if ( token == JsonToken . START_OBJECT ) { values . put ( key , getEmbeddedObject ( jsonParser ) ) ; } else { if ( token . equals ( JsonToken . VALUE_NULL ) ) { values . put ( key , null ) ; } else { values . put ( key , jsonParser . getText ( ) ) ; } } } }
Process all things that do not contain special ODataTags .