JSONObject.parseObject(jsonStr, new TypeReference<Map<String,Object>>(){} );
jsonStr为 json字符串 适应器 new TypeReference<T>(){}
T为Map<String,Object>就是转为Map类型
T为List<Map<String, Object>>就是转为List<Map<String, Object>>类型
转为其他类型同理
JSONObject.parseObject(jsonStr, new TypeReference<Map<String,Object>>(){} );
jsonStr为 json字符串 适应器 new TypeReference<T>(){}
T为Map<String,Object>就是转为Map类型
T为List<Map<String, Object>>就是转为List<Map<String, Object>>类型
转为其他类型同理