I have a JSON object that looks like this
{ \"foo\":{ \"bar\":\"bar\", \"echo\":\"echo\" } }
But then my Java object looks
Yes you can do this
Add this import
import com.google.gson.annotations.SerializedName;
and declare the variable like this
@SerializedName("echo") private String myCustomeName;