Hi. I'm working against a REST Api where the respo...
# android
k
Hi. I'm working against a REST Api where the response has two objects (a, b )of interest can be any combination of
Copy code
List<SomeObject>, null, SomeObject
I already handled the List<SomeObject> and null responses. But the problem is the JSON response always has the same name, but may be an array or an object.
Copy code
eg it can be Z  = List<SomeObject> or Z = SomeObject
Can I solve this in some nice way?