Skip to main content

Posts

Showing posts from April, 2015

How To: Generating Table Report via JSON data-source in Jasper Report

Recently, I got a chance to generate reports using JSON data source in Jasper Report via Java Spring application. As I was newbie in Jasper Report; I tried to find out tutorials to get started with JSON data source and populate JSON data in table. I thought it will be smooth but its not; you need to do some configuration in JRXML to populate the data fields. In this How - To, I will try to explain how to setup JSON data source and pull data field in iReport (Jasper Report - Report Designer Tool) and then generate a table.   Note: For Java 8 users, refer this link to open iReport http://stackoverflow.com/questions/23902977/ireport-not-starting-using-jre-8 First we create static JSON file student.json: [{"name" : "ABC", "age" : 23, "address" : "11 street", "taking_hostel" : "No"},{"name" : "DEF", "age" : 22, "address" : "1 street", "taking_hostel" : &q