Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
F

fastjson

> 数据库
Open source

FASTJSON 2.0.x has been released, faster and more secure, recommend you upgrade.

25.6K stars0 likes2 views
WebsiteGitHub

About

FASTJSON 2.0.x has been released, faster and more secure, recommend you upgrade.

fastjson

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 2.0.x has been released, faster and more secure, we recommend you upgrade to the latest version.

Fastjson Goals

  • Provide the best performance on the 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)

Documentation

  • Documentation Home
  • Contributing Code
  • Frequently Asked Questions
  • FASTJSON 1.x User Upgrade Guid https://github.com/alibaba/fastjson2/wiki/fastjson_1_upgrade_cn

Benchmark

  • Eishay benchmark https://github.com/eishay/jvm-serializers/wiki
  • fastjson2 benchmark https://github.com/alibaba/fastjson2/wiki/fastjson_benchmark

Download

  • maven
  • the latest JAR

Maven

xml
<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>fastjson</artifactId>
    <version>2.0.31</version>
</dependency>

Gradle via JCenter

groovy
compile 'com.alibaba:fastjson:2.0.28'

Please see this Wiki Download Page for more repository info.

License

Fastjson is released under the Apache 2.0 license.

Copyright 1999-2020 Alibaba Group Holding Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at the following link.

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Issues· 2112 open

View all issuesOpen on GitHub
  • #3115

    【需求】支持按照成员变量声明顺序,做序列化字段排序

    Updated Oct 22, 2024
  • #4540

    JSONObject.toJavaObject方法的参数没有使用

    Updated Oct 19, 2024
  • #4539

    2.0.53版本在jdk21下多构造函数时反序列化异常

    Updated Oct 16, 2024
  • #4538

    1.2.83版本中DNS解析问题

    Updated Oct 16, 2024
  • #4537

    [BUG] fastjson2 将时间戳解析时间为LocalDateTime,较早的时间解析异常

    Updated Oct 11, 2024
  • #4536

    TODO, offset 28912, character \", line 1, column 28913, fastjson-version 2.0.41

    Updated Oct 11, 2024
  • #4535

    2.0.38版本开始,反序列化时,当对象中的属性很多时,会报错not support,我本地大概80个左右

    Updated Oct 9, 2024
  • #1806

    对kotlin支持这么差吗

    Updated Oct 8, 2024
  • #4527

    写的很好,下次别写了

    Updated Oct 8, 2024
  • #2701

    SerializeConfig对嵌套结构中的枚举不生效是为什么?

    Updated Oct 6, 2024

> Tags

Javaandroidbest-performancedeserializationfastjson

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库