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.
I had same problem with Gson and @SerializedName doesn't help in my case. So I used org.codehaus.jackson.map.ObjectMapper
ObjectMapper mapper = new ObjectMapper(); String responseJson = mapper.writeValueAsString(object);