1、String转成List
//此对象可放在外面
ObjectMapper om = new ObjectMapper();
//使用TypeReference,这里是要重新实现的,不要忘记后面的花括号
List<VoucherOrganization> orgList = om.readValue(orgJson, new TypeReference<List<VoucherOrganization>>() {
});
2、转成对象比较简单后面有时间再补充
3、对象转json
ObjectMapper om = new ObjectMapper();requestJson = om.writeValueAsString(requestData);