Fastjson: JsonProperty

Created on 17 Mar 2017  ·  1Comment  ·  Source: alibaba/fastjson

Does FastJSON support annotation like @JsonProperty like Jackson in order to give custom name to key name of the JSON string ?

question

Most helpful comment

com.alibaba.fastjson.annotation.JSONField

https://github.com/alibaba/fastjson/wiki/JSONField

 public class Model {
      @JSONField(name="ID")
      private int id;

      public int getId() {return id;}
      public void setId(int value) {this.id = id;}
 }

>All comments

com.alibaba.fastjson.annotation.JSONField

https://github.com/alibaba/fastjson/wiki/JSONField

 public class Model {
      @JSONField(name="ID")
      private int id;

      public int getId() {return id;}
      public void setId(int value) {this.id = id;}
 }
Was this page helpful?
0 / 5 - 0 ratings