I am trying to deserialize a json object into a java bean. The main issue I am facing is that I\'d like to treat the field object of the json string as a plain
object
Just declare it as of type JsonObject
class ExampleJsonModel { @SerializedName("type") public String type; @SerializedName("object") public JsonObject object; }