I need to parse a JSON Response that looks like:
{\"key1\": \"value1\",
\"key2\": \"value2\",
\"key3\":
{\"childKey1\": \"childValue1\",
\"childKe
As far as I remember you should create separate class for each json object. Try something like this:
class Key {
@SerializedName("childKey1")
private String mchildKey1;
@SerializedName("childKey2")
private String mchildKey2;
@SerializedName("childKey3")
private String mchildKey3;
}
class Egg {
@SerializedName("key1")
private String mKey1;
@SerializedName("key2")
private String mKey2;
@SerializedName("key3")
private Key mKey3;
}
If this is not what you expected you can write your own serialize/deserialize adapter.