fastjson-1.2.11 發布
Bug Fixed
- 修復在某些場景下,List<String>字段序列化后結果不對的問題。這問題因1.2.10優化引起,在此版本1.2.11中修復。
- 修復FastJsonHttpMessageConverter和spring 4.x版本不兼容的問題 Issue591 Issue574 Issue577
功能增強
- 新增Class Level SerializeSerializeFilter功能,允許將SerializeSerializeFilter注冊到Class級別
- JSON類新增API,parseObject對InputStream直接支持。https://github.com/alibaba/fastjson/wiki/JSON_parseObject_InputStream_cn
- JSON類新增API writeJSONString對OutputStream/Writer直接支持。https://github.com/alibaba/fastjson/wiki/JSON_writeJSONString_cn
- JSONType新增加seeAlso配置,類似JAXB中的XmlSeeAlso,允許輸出更短的className名稱。https://github.com/alibaba/fastjson/wiki/JSONType_seeAlso_cn
- 增強對BeanToArray模式的支持
性能提升
在fastjson-1.2.11版本中,序列化性能有了很大提升,總體性能遠超過jackson的普通模式和afterburn模式。BeanToArray模式的提升更是明顯,在BeanToArray模式下,eishay的測試已經超越protobuf。具體測試報告看這里 https://github.com/alibaba/fastjson/wiki/Benchmark_1_2_11
相關鏈接
- 下載 http://repo1.maven.org/maven2/com/alibaba/fastjson/1.2.11/
- 文檔https://github.com/alibaba/fastjson/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98
- 源碼 https://github.com/alibaba/fastjson/tree/1.2.11_release
Downloads
本文由用戶 五嘎子 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!