Json Simple 简明教程

JSON.simple - Overview

JSON.simple 是一个基于 Java 的简单工具包,适用于 JSON。你可以使用 JSON.simple 对 JSON 数据进行编码或解码。

JSON.simple is a simple Java based toolkit for JSON. You can use JSON.simple to encode or decode JSON data.

Features

  1. Specification Compliant − JSON.simple is fully compliant with JSON Specification - RFC4627.

  2. Lightweight − It have very few classes and provides the necessary functionalities like encode/decode and escaping json.

  3. Reuses Collections − Most of the operations are done using Map/List interfaces increasing the reusablity.

  4. Streaming supported − Supports streaming of JSON output text.

  5. SAX like Content Handler − Provides a SAX-like interface to stream large amount of JSON data.

  6. High performance − Heap based parser is used and provide high performance.

  7. No dependency − No external library dependency. Can be independently included.

  8. JDK1.2 compatible − Source code and the binary are JDK1.2 compatible