private String parseDefaultValue ( String key ) throws IOException { jsonParser . nextToken ( ) ; String value = null ; JsonToken currentToken = jsonParser . getCurrentToken ( ) ; if ( currentToken != JsonToken . VALUE_NULL ) { if ( currentToken == JsonToken . START_ARRAY || currentToken == JsonToken . START_OBJECT ) { JsonNode node = jsonParser . readValueAsTree ( ) ; value = node . toString ( ) ; } else { value = jsonParser . getValueAsString ( ) ; } } return value ; }
Parses the event with key as default value .