解析JSON的Java类库:json-smart

jopen 11年前

Json-smart 是一个高性能的JSON处理类库。 Getting Start guide

Json-smart 接口跟 json-simple 十分相似,因此很容易从json-simple迁至 json-smart。 Migration Guide Available

Json-smart 是基于Java的最快的Json API之一。 详情请参考测试基准. Benchmarks

特点:

  • 比 json-simple 快(至少两倍) See Benchmarks
  • 使用 Java 范型。
  • 允许 Parser 灵活定制。
  • json 生成器能生成压缩后的 json 数据。
  • 由于接口一致,使用 json-simple 的项目可以很容易迁至 json-smart。
  • 使用 maven 构建。
  • maven 中央库上可用。

<dependency>   <groupId>net.minidev</groupId>   <artifactId>json-smart</artifactId>   <version>1.1.1</version>  </dependency>

项目主页:http://www.open-open.com/lib/view/home/1363053887968