阿里巴巴fastjson: 世界上最快的 Java json 解析包, 2个bug
来源:互联网 发布:蚌埠巨人网络 编辑:程序博客网 时间:2024/06/01 07:35
阿里巴巴fastjson, 国产荣耀, 力克google的gson包
请看fastjson生成和解析json数据,序列化和反序列化数据
最新版本:
1.2.6
1.2.4
1.2.2
1.1.46
FastJSON、Gson和Jackson性能对比
请移步http://blog.csdn.net/accountwcx/article/details/50252657
一个bug
版本:fastjson-1.1.36.jar
当 Entity 类的 field 以s开头 且是private时无法用 JSON.toJSONString()
转换为 String。
只能令 field 为 public 。
import com.alibaba.fastjson.JSON;public class Test { private String sFhah="1"; //public String sFhah="1"; public String getsFhah() { return sFhah; } public void setsFhah(String sFhah) { this.sFhah = sFhah; } public static void main(String[] args){ Test na=new Test(); na.setsFhah("dfa"); JSON.toJSONString(na); }}
bug- JSON.toJSONString()返回值带$ref
请移步
http://www.cnblogs.com/zjrodger/p/4630237.html
JSON.toJSONString(returnDto, SerializerFeature.DisableCircularReferenceDetect);
0 0
- 阿里巴巴fastjson: 世界上最快的 Java json 解析包, 2个bug
- Json解析包 阿里巴巴 FastJson 的使用
- Java的Json解析包FastJson使用
- FastJson--阿里巴巴公司开源的速度最快的Json和对象转换工具
- FastJson--阿里巴巴公司开源的速度最快的Json和对象转换工具
- FastJson--阿里巴巴公司开源的速度最快的Json和对象转换工具
- FastJson--阿里巴巴公司开源的速度最快的Json和对象转换工具
- 学习 FastJson--阿里巴巴公司开源的速度最快的Json和对象转换工具
- FastJson--阿里巴巴公司开源的速度最快的Json和对象转换工具
- FastJson--阿里巴巴公司开源的速度最快的Json和对象转换工具
- FastJson--阿里巴巴公司开源的速度最快的Json和对象转换工具
- FastJson--阿里巴巴公司开源的速度最快的Json和对象转换工具
- FastJson--阿里巴巴公司开源的速度最快的Json和对象转换工
- FastJson--阿里巴巴公司开源的速度最快的Json和对象转换工具
- FastJson--阿里巴巴公司开源的速度最快的Json和对象转换工具
- FastJson--阿里巴巴公司开源的速度最快的Json和对象转换工具
- FastJson--阿里巴巴公司开源的速度最快的Json和对象转换工具
- FastJson--阿里巴巴公司开源的速度最快的Json和对象转换工具
- Spring Tool Suite
- (转)URI和URL及URN的区别
- python做考勤统计
- No module named gevent
- Java线程池使用
- 阿里巴巴fastjson: 世界上最快的 Java json 解析包, 2个bug
- Android Studio导入Android源码/调试framework的教程
- ACdream 1412 DP
- Python机器学习与实战笔记之朴素贝叶斯分类
- Eclipse/MyEclipse中使用复制粘贴功能卡的解决办法(转)
- hive-分析函数
- usb
- Quartz2D基本图形绘制
- Okhttp使用简析——Android网络请求框架(一)