1. maven依赖包下载
- <!--json-lib-->
- <dependency>
- <groupId>net.sf.json-lib</groupId>
- <artifactId>json-lib</artifactId>
- <version>2.4</version>
- <classifier>jdk15</classifier>
- </dependency>
2. JsonUtil.java
- import java.util.ArrayList;
- import java.util.HashMap;
- import java.util.List;