samza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shekar Tippur <>
Subject Having trouble deserializing nested json payload
Date Mon, 08 Dec 2014 10:53:24 GMT
I have a nested JSON as payload.

For example,


  "source_ip": "",






I am using GSON to deserialize the payload.

I am having trouble with the nested part. "raw":{"ACKNOWLEDGED":"false"}

In my gson structure, I was trying to define it as

private JSONObject raw;

But this seem to throw a exception -

 Exception in thread "ThreadJob" No serializer found for
class org.json.JSONObject and no properties discovered to create
BeanSerializer (to avoid exception, disable
SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS) ) (through reference

Appreciate if someone could point out how to handle this.

- Shekar

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message