I have a 3 object value from JSON, and the second object is dynamic value, i.e. it can be an array or an object. So it look like this one :
{
obj1 : {....},
dynamicObj2 : {....}, // it can be object or array
obj3 : {....}
}
So, my question is how can this be achieved in the POJO class? I am using GSON for this case. And it will be implemented at Android end and I am using retrofit for the networking library. Any suggestion for POJO class? Or I must use manual String object and parsing one by one?