Skip to content
温绍锦 edited this page Jun 15, 2020 · 71 revisions
Clone this wiki locally

English | 中文

Fastjson is a Java library that can be used to convert Java Objects into their JSON representation. It can also be used to convert a JSON string to an equivalent Java object. Fastjson can work with arbitrary Java objects including pre-existing objects that you do not have source-code of.

Fastjson Goals

  • Provide best performance in server side and android client.
  • Provide simple toJSONString() and parseObject() methods to convert Java objects to JSON and vice-versa.
  • Allow pre-existing unmodifiable objects to be converted to and from JSON.
  • Extensive support of Java Generics.
  • Allow custom representations for objects.
  • Support arbitrarily complex objects (with deep inheritance hierarchies and extensive use of generic types).

Frequently Asked Questions


android developer plz see Here

the latest JAR

or via Maven:


or via Gradle:

compile ''

replace VERSION_CODE with real version name such as 1.2.71 released in Here or Here or Here.

Getting started

Samples :

Integrate Fastjson in Spring

Integrate Fastjson in JAX-RS

Use Fastjson in Kotlin

Best Practice for JSON/Fastjson