对象转json
String str = JSON.toJSONString(recVo);
json 转对象
Test Obj = JSON.parseObject(str, Test .class);
json转list对象
List<Test > arrList = JSON.parseArray(arrJson, Test .class);
对象转json
String str = JSON.toJSONString(recVo);
json 转对象
Test Obj = JSON.parseObject(str, Test .class);
json转list对象
List<Test > arrList = JSON.parseArray(arrJson, Test .class);