I am trying to display a JSON array in HTML which I get as response from Jersey.
I am getting JSON array as follows:
{"balance":
[
{"Group":"new","balance":" 10","description":"Cost vehicles"},
{"Group":"new","balance":"677","description":"Motor vehicles"}
]
}
How can I display this kind of JSON in HTML as a table?
Resource methods are as follow:
@GET
@Produces("application/json")
@Path("/view")
public ArrayList<BalanceSheet> viewBalanceSheet(){
ArrayList <BalanceSheet> balanceList=BalanceSheetService.getBalanceSheet();
return balanceList;
}