String转Map
Map<String, Object> maps = (Map<String, Object>) JSON.parse(jsonObject);
Map maps = (Map) JSON.parse(jsonObject);
String转实体对象
BankCardData bankCardData = JSONObject.parseObject(result, BankCardData.class);
Map转实体String
String result = maps.get("result").toString();
String转List
List<Student> list = JSONArray.parseArray(arrayStr,Student.class);
实体对象转String
String s = JSONObject.toJSONString(ordersVo);
JSON转实体对象
FoodPermit foodPermit1 = JSON.parseObject(JSONObject_result.toString(), FoodPermit.class);
掌握这些就可以互转了哈!