Remote REST Service JSON to Jaspersoft Chart

1

Hello, 

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: 6 years 8 months ago

1 Answer:

1

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

Steve Park's picture
2792
Joined: Dec 5 2012 - 8:39am
Last seen: 2 weeks 1 day ago
Feedback