Search code examples
javajsonjasper-reports

There is any way to parse the JASPER Report into JSON Object..?


I want to create a JSON Object from the JASPER Report by writing Java Code. is there is any way to do this??


Solution

  • Yes, is is possible. Take a look to JasperReports documentation here. Note that the JSON output format organizes data hierachically in a tree structure, written in accordance with the JSON syntax:

    • arrays are enclosed in square brackets
    • objects in arrays are comma-separated
    • objects are enclosed in curly braces
    • object members come in name:value pairs, separated by commas

    Here is another topic that may help you (with screenshots).