JSON.parseObject和JSON.toJSONString 导入依赖 <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.62</version> </dependency> JSON.parseObject 将Json字符串转化为相应的对象; 示例: 结果: JSON.toJSONString 是将对象转化为Json字符串 示例: 结果: