Given the JObject balances, how can I select balance where asset = ‘XBT’?
I am trying to return the value ‘2.2547’.
{
'balances':
[
{
'account_id': '123456789',
'asset': 'XBT',
'balance': '2.2547',
'reserved': '0.00',
'unconfirmed': '0'
},
{
'account_id': '9123456789',
'asset': 'USD',
'balance': '200.25',
'reserved': '0.00',
'unconfirmed': '0'
}
]
}
Thanks in advance
symilawr