Jackson has the @JsonProperty(\"name\") annotation, which can be applied to methods - the return value of the method will be assigned to the \"name\" parameter in the JSON.
The solution in Gson is a similar annotation called @SerializedName that you can use to provide names that match the source JSON.
A simple example is shown below:
public class Message { @SerializedName("ID") private String id; @SerializedName("NFd") private int fileDescriptors; }
Source