Genson 0.95 发布,Java轻量级的JSON操作类库
jopen 11年前
Genson是一个轻量的Java类库用于在JSON与Java对象之间相互转换。它提供了完整的数据绑定和Java泛型支持。 Genson拥有丰富的功能,强大的特性,可扩展性易于增加新的功能。
漂亮的特性
- Easy to use, fast, highly configurable, lightweight and all that into a single small jar!
- Full databinding and streaming support for efficient read/write
- Support for polymorphic types (able to deserialize to an unknown type)
- Does not require a default no arg constructor and really passes the values not just null, encouraging immutability. It can even be used with factory methods instead of constructors!
- Full support for generic types
- Easy to filter/include properties without requiring the use of annotations or mixins
- You can apply filtering or transformation logic at runtime on any bean using the BeaView mechanism
- Starting with Genson 0.95 JAXB annotations and types are supported!
- Automatic support for JSON in JAX-RS implementations
- Serialization and Deserialization of maps with complex keys