Does Gson have something like @JsonProperty for methods?

前端 未结 4 1659
温柔的废话
温柔的废话 2021-02-19 18:22

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.

4条回答
提交回复
热议问题