Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

How to use a json data file in iReport Designer 5.6.0

Writer Sophia Terry

I had just downloaded iReport 5.6.0. But unable to load any JSON file parameters on top of the report.

I didn't find any good help online related with this. I find some help from the url as below:-

But from the above steps I didn't know where to write query in "report query" and to manually create fields, matching names of our json data.

Please help to load data from JSON datasource.

1

1 Answer

A little bit late, but here are directtions.

1) Click Report Datasource button in iReport Designer:

enter image description here

2) Click "New", select "JSON datasource, click "Next"

3) Give it Name, browse to a json file, click "Test" to check:

enter image description here

json.txt:

[
{ "id": 123, "name": "abc" },
{ "id": 456, "name": "def" }
]

4) Add fields manually, use proper types and put onto the report page:

enter image description here

5) Generate preview:

enter image description here

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.