//JSONObject.toBean方法不识别date属性
需要加上JSONUtils.getMorpherRegistry().registerMorpher(new DateMorpher(new String[] {"yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss"}));
例如: JSONObject jsonObject=JSONObject.fromObject(dataset); JSONUtils.getMorpherRegistry().registerMorpher(new DateMorpher(new String[] {"yyyy-MM-dd", "yyyy-MM-dd HH:mm:ss"})); CaseStatisticModel model=(CaseStatisticModel)JSONObject.toBean(jsonObject, CaseStatisticModel.class);