Jump to content
We've recently updated our Privacy Statement, available here ×

create table from nested json object


phj0001

Recommended Posts

Hello experts,

I want to create below table from the json datasource in jasper studio

Name of
Scheme(s)
Type of Transfer-in AccountsNumber of business daysTotal
1234567>7
HSBC Mandatory Provident Fund - SuperTrustPA45211332342000435
EE CON + SEP4335991641000342
HSBC Mandatory Provident Fund - SuperTrust PlusPA2098232949144001119
EE CON + SEP149512693792000850
HSBC Mandatory Provident Fund - SimpleChoicePA0066000012
EE CON + SEP000000000

i have created json datasource first , then created dataset but i am unable to bind that datasource with the table properly

i have created json file like below, let me know if it is not correct:

JSON:
  {
    "name of schema(s)": [{"HSBC mandatory fund":[{
    "type of transfer-in accounts": "PA",
    "number of business days": [
      {
        "1": 45,
        "2": 21,
"3": 133,
"4": 234,
"5": 2,
"6": 0,
"7": 0,
">7": 0
      }
    ],
    "Total": 435},
{
    "type of transfer-in accounts": "EE CON + SEP",
    "number of business days": [
      {
        "1": 43,
        "2": 35,
"3": 99,
"4": 164,
"5": 1,
"6": 0,
"7": 0,
">7": 0
      }
    ],
    "Total": 342}
]
  }
 ]
}
 
please help me out with how to create that table in jasper studio
i want jrxml file of that table and want it to use somewhere else
 
thanks in advance:)
 
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...