java怎么解析json对象

{
"result":{
"face_token":"7585cf8122d248aca71f6161cd708fbb",
"user_list":[{
"score":100,
"group_id":"20125",
"user_id":"2",
"user_info":""
}]
},
"log_id":2789260894,
"error_msg":"SUCCESS",
"cached":0,"
error_code":0,
"timestamp":1651481189
}

可以用阿里的fastjson,查一下用法就可以了

引入


```java
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.47</version>
</dependency>

```
2.直接编写 JSONOBJECT.方法名 就可以将字符串转换为实体对象