I have a JSON dataset in the following structure. I need to extract information from the JSON and display it on an HTML table.
[region:
[name:"",
code:""IntradayBalance:{ currency:,Time:,Balance: }....
],
acccountcurrencyBalance:[{ currency: ,Time: ,Balance: ,
},...],]
[country :
[name:"",
code:""
IntradayBalance:
{
currency:
Time:
Balance:
}....
],
acccountcurrencyBalance:[
{
currency:
Time:
Balance:
},...],
]
I am trying to access data from "accountcurrencyBalance", but so far I have only managed to output the "region name". Here is the code snippet from my controller:
$http.get('data.json').success(function(data){$scope.response=data}
And here is my HTML code:
<ul ng-repeat="a in response">
<li>{{a.region}}</li>
</ul>
<ul ng-repeat="a in response.accountcurrencyBalance">
<li>{{a.accountcurrencyBalance.time}}</li>
</ul>
So far, it can only display the Region Name and not the data from account currency balance. Can anyone please assist?