Have report fetch JSON from web location?

0

Hello, 

I'd like to use JasperServer, but have it fetch data via web service which returns JSON data. Is this possible? I'm willing to write custom data source driver or whatever is needed, but was hoping someone could point me in the right direction so that I don't have to re-invent the wheel.

Ideally, I would be using a REST api to request a report PDF and pass in the URL where the data could be downloaded.  If it was somehow easier, I could also submit the data as a parameter but that is less clean fro my standpoint since I already have the JSON endpoints setup on my other system.

Thanks,

-jr

jamesr219's picture
Joined: Jul 5 2007 - 11:39am
Last seen: 3 years 11 months ago

1 Answer:

0

This is possible using parameters defined in the jrxml file and not using any data adapter. 

See example project attached to this issue. It fetches some JSON from github API and displays it in the report. 

http://community.jaspersoft.com/jaspersoft-studio/issues/4606

jamesr219's picture
Joined: Jul 5 2007 - 11:39am
Last seen: 3 years 11 months ago
Feedback
randomness