一种是常见的com.alibaba.fastjson.JSON包,相信大家都很熟悉
今天给大家介绍JSONObject的是另一种包,全称是这样的:
org.springframework.boot.configurationprocessor.json.JSONObject
pom导入包是:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<version>2.1.6.RELEASE</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
相信大家可能没那么熟悉,该包相对于fastJson优势就是没有反序列化漏洞。