Jackson

https://blog.csdn.net/oschina_40730821/article/details/124025086
Spring MVC 的默认 json 解析器

Jackson 的核心模块由三部分组成
jackson-core,核心包
jackson-annotations,注解包
jackson-databind ,数据绑定包

# 依赖
 <dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-core</artifactId>
    <version>2.15.2</version>
</dependency>

<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-annotations</artifactId>
    <version>2.15.2</version>
</dependency>

<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.15.2</version>
</dependency>
  • 用法


fastJson

https://developer.aliyun.com/article/1111847
https://blog.csdn.net/m0_67392409/article/details/126100197

dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>fastjson</artifactId>
    <version>1.2.83</version>
</dependency>

gson

https://blog.csdn.net/qq_43842093/article/details/121258766



org.json

轻量的json 和fastJson类型的 JSONObject JSONArray对象
https://blog.csdn.net/pengjunlee/article/details/83985602

<dependency>
    <groupId>org.json</groupId>
    <artifactId>json</artifactId>
    <version>20220320</version>
</dependency>