<!--maven依赖--> <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>${fastjson.version}</version> </dependency>
<!--fastjson示例-->
JSON.toJSONString(Object) //转json
JSON.parseObject(String, Class) //将json转换成指定的class