import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
阿里巴巴提供的JSON类
T num= JSONObject.parseObject("String", new TypeReference<T>(){})
List<HashMap<String, Object>> list= JSONObject.parseObject("String", new TypeReference<List<HashMap<String, Object>>>(){})