![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JSON
ai_xiangjuan
这个作者很懒,什么都没留下…
展开
-
Fastjson一
1.基础 1.1 枚举写 java的所有枚举都继承Enum类 public void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features) throws IOException { SerializeWriter out = seriali...原创 2018-09-16 15:55:53 · 98 阅读 · 0 评论 -
Fastjson二
1. fastjson定制序列化字段 @JSONField(name="gender") public String sex; 2. fastjson序列化空字段 @JsonInclude(value = Include.ALWAYS) public String sex; 3. fastjson的getxxx()方法 通过JSONObject的get()方法可以获取key的值...原创 2018-09-16 15:59:55 · 371 阅读 · 0 评论