Remote REST Service JSON to Jaspersoft Chart



Can we feed JSON data coming from REST service hosted. I see IReports has Remote XML.. is there anything for JSON

rakesh2kv's picture
Joined: Dec 3 2012 - 5:22pm
Last seen: 8 years 5 months ago

1 Answer:


Hi rakesh2kv,

There's a JSON data source in iReports, but it uses a local file.  The easiest way to do this would be with a query executer.  If you have the source code, you can make a slight modification to the existing RemoteXMLQueryExecuter to return JSON instead of XML and then run iReport in query executer mode.  You can use the JsonDataSource(String location, String selectExpression) constructor to instantiate the data source and pass the URI into the location parameter.


Steve Park's picture
Joined: Dec 5 2012 - 8:39am
Last seen: 1 year 9 months ago