
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 · 154 阅读 · 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 · 487 阅读 · 0 评论