I'm trying to access and process the response of an API call in this form:
{ BTC: { available: '0.77206464', onOrder: '0.00177975' },
LTC: { available: '0.00000000', onOrder: '0.00000000' },
ETH: { available: '1.14109900', onOrder: '0.00000000' },
BNC: { available: '0.00000000', onOrder: '0.00000000' },
MTL: { available: '0.00000000', onOrder: '0.00000000' },
SALT: { available: '0.00000000', onOrder: '0.00000000' },
NULS: { available: '0.00000000', onOrder: '0.00000000' } }
I'm using js and node for the backend server and ejs as templating.
Trying to iterate over this object always get me something like
BTC [object Object] LTC [object Object]
Anyone could help me? Thanks in advance