String String = request.getParameter(“params”);
//marString参数值示例:[{"station":"M1011","time":"2020-01-19 00:00:00","type":"小时"}]
JSONArray jsonArray = JSONArray.fromObject(String);
if(jsonArray !=null && jsonArray.size()>0){
for( int i=0; i< jsonArray.size(); i++){
JSONObject object = jsonArray.getJSONObject(i);
String data = object.getString(“data”);
System.out.println("data"+data);
}
}