java的http接口传输对象
解决方法:
对象要实现Serializable接口。
1.服务端
JasperPrint jasperPrint = null;//你的对象
response.setContentType("application/json; charset=UTF-8");
ObjectOutputStream out = new ObjectOutputStream(response.getOutputStream());
out.writeObject(jasperPrint);
out.close();