fill report with json data using rest service.


Im looking for obtain PDF report from my JasperServer, with a embbemed json in the request as a DataSource which fill the report.  Im using Angular-JS. 

I found this solution wich use XML instead.  

This is the correct way to do it?.  

Thanks, im newbie in JasperSoft.'s picture
Joined: May 30 2016 - 1:12am
Last seen: 6 years 9 months ago

Oooops. Just found this

Lets test it =). - 7 years 3 months ago

2 Answers:

You could check my answer here:

It is more up-to-date and involves REST services. Although it is for XML it can easily be switched to use JSON (with JSON_INPUT_STREAM or net.sf.jasperreports.json.source parameter) 

narcism's picture
Joined: Nov 22 2010 - 12:39am
Last seen: 6 hours 45 min ago

I pass json data through JSON_INPUT_STREAM but report datasets doesn't seem to get json data. I put in table dataset parameters to retreive JSON_INPUT_STREAM and net.sf.jasperreports.json.source parameters from master report, but nothing happens.

maytemozo87's picture
Joined: May 8 2017 - 2:11pm
Last seen: 5 years 4 months ago