Jasper报告JSON数据的数据源 [英] Jasper Reports datasource for JSON data

查看:1174
本文介绍了Jasper报告JSON数据的数据源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道可以处理JSON数据的开源Jasper Reports DataSource实现吗?我想在一些自定义报告中使用RESTful API中的JSON数据。在我自己构建它之前,我想我会检查是否已存在某些内容。

Anyone know of an open source Jasper Reports DataSource implementation that can handle JSON data? I'd like to utilize JSON data from a RESTful API in some custom reports. Before I build it myself, I figured I'd check if something already exists.

推荐答案

Jasper 5.0中有一个JSON数据源0.1。我认为这是V5的新功能。

There is a JSON Datasource in Jasper 5.0.1. I think it is new with V5.

http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/data/JsonDataSource.html

API不会告诉你太多。还没有找到它的文档。我刚下载的JasperReports终极指南(日期为2013年1月15日)似乎没有更新过。

The API doesn't tell you much. Haven't found documentation for it yet. The JasperReports Ultimate Guide I just downloaded (dated 1/15/2013) doesn't seem to have been updated with it.

我怀疑它的工作方式有点像XML数据源:您使用路径(在XML的情况下为XPATH)来指定字段。

I suspect it works somewhat like the XML Datasource: you use paths (XPATH in the case of XML) to specify the fields.

这篇关于Jasper报告JSON数据的数据源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆