Jump to content
Changes to the Jaspersoft community edition download ×

Making reports with nested JSON, JSONQL?


Recommended Posts

Hi, 

I've got a question about nested JSON/Multiple querries. 

I currently have a report using WebserviceQuerry that returns me a JSON. To get everything I need, I use a subreport, this passes to a subreport etc etc.
I'm wondering if this can be made more efficiënt?

For example: 

 JSONQUERRY.jpg.c7fd23623e8b779026b5dfd14f8ffe93.jpg

I can access hostid and name as I've set "result" as root path. But how can I access all the information under "items"? 
Jasperreports 6.3.1 supports JSONQL, can this somehow be used to access those fields? 

Should I go about it some other way? 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

You should be able to achieve what you want with either JSON or JSONQL query languages. JSONQL has more features and is meant to replace JSON.

Your case looks similar to the ones described in the documentation for JSONQL datasource:

JSONQL: http://jasperreports.sourceforge.net/sample.reference/jsonqldatasource/index.html#jsonqldatasource

You can also grab the sample files from the github project: https://github.com/Jaspersoft/jasperreports/tree/jr-6-3-1/jasperreports/demo/samples/jsonqldatasource

Link to comment
Share on other sites

  • 1 year later...
  • 1 year later...
  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...