github alibaba/fastjson 1.2.9
fastjson-1.2.9版本发布,提升序列化性能,功能增强,修复bug

latest releases: 1.2.83, 1.2.80, 1.2.79...
8 years ago

Bug Fixed

  1. 修复SupportArrayToBean启动时某些情况下报错的BUG。issue 562
  2. 修复自定义Enum反序列化实现时报错的BUG。issue 457
  3. 修正JSON.toJavaObject 转换 java.util.Currency 失败的问题。 issue 349
  4. 修正无法解析带注释的json问题。issue 439
  5. 修正无法自动识别android风格m前缀字段的问题。issue 443
  6. 修正float类型和double类型为空字符串时反序列化失败 issue 479
  7. 反序列化ArrayList派生类出错。issue 389
  8. 修正 @type如果没有在“{”之后的第一位时无法识别类型。issue 406
  9. 修正某些情况下引用计算错误的问题。issue 415, issue 236
  10. 修正JSON.toJSONString的某个方法强制使用WriteDateUseDateFormat的问题 issue 476, issue 367, issue 314
  11. 修正使用 ISO8601 序列化Calendar类型, 丢失时间数据。issue 331
  12. 修复json字符串尾部存在空字符串时报错的问题。issue 304

功能增强

  1. 支持链式编程API,JSONObject/JSONArray支持fluentPut/fluentPutAll/fluentClear/fluentRemove方法。 issue 551
  2. 支持jax-rs。新增加com.alibaba.fastjson.support.jaxrs.FastJsonProvider,来自smallnest的实现
  3. TypeUtils.castToDouble方法支持"1,000"这种风格的字符串。
  4. FastJsonHttpMessageConverter支持配置dateFormatPattern issue 418
  5. 增加ExtraProcessable扩展,用于JavaBean处理扩展字段,这个个性对于MapBean很有用。https://github.com/alibaba/fastjson/wiki/ExtraProcessable
  6. 增加FieldTypeResolver扩展,用于根据字段名称识别类型。 https://github.com/alibaba/fastjson/wiki/FieldTypeResolver
  7. SimplePropertyPreFilter增加maxLevel配置,可以用于配置最大输出层数。https://github.com/alibaba/fastjson/wiki/Samples-PropertyFilter
  8. 新增加ContextValueFilter,用于定制序列化。https://github.com/alibaba/fastjson/wiki/ContextValueFilter
  9. 新增SerializerFeature.WriteNonStringValueAsString ,用于将非字符串类型的值输出为字符串。issue 237
  10. 字节码生成的实现ASMSerializerFactory和ASMDeserializerFactory避免硬编码,方便一些容器重构修改包名内嵌,用于避免jar包版本冲突。
  11. TypeReference增强,支持传入参数 https://github.com/alibaba/fastjson/wiki/TypeReference
  12. 支持Iterable类型序列化 issue 478

性能

优化序列化的字节码生成实现,序列化性能略有提升。

相关链接

Don't miss a new fastjson release

NewReleases is sending notifications on new releases.