For instance given this
[{ "data" : { "item1": value1, "item2:" value2 }}]
How do you get the values 'value1' and 'value2' when you must first access data?
If the fields were at the root then I could just have the method return a POJO with those field names.
I basically want the below to work.
@GET("/path/to/data/")
Pojo getData();
class Pojo
{
public String item1;
public String item2;
}
IService service = restAdapter.create(IService.class);
Pojo pojo = service.getData();
Log.e("pojo", pojo.item1 + ", " + pojo.item2);
Thank you.