{ \"data.url\" : \"http://dev.com\", \"value\": [ { \"color\": \"red\" \"shape\": \"rect\" }, { \"color\": \"blue
Because Java doesn't allow . in a variable name, you need to use the @SerializedName annotation on that field in your class:
.
@SerializedName
public class MyPojo { @SerializedName("data.url") private String dataUrl; ... }