I am creating a application in which I am receiving the data in JSON format from Jersey RESTServices.I need to dynamically generate the table using the JSON data and also want to store the values in this table. Let us suppose that I get the data as:
{ "fieldLists":
{"fields":[
{"name":"field_a","type":"any Java Type"},
{"name":"field_b","type":"any Java Type"}
]
}
}
Now I need to create table using this data.I am stuck how to create class and its mapping at run time?
Please suggest which approach will be better?