get response in function node.js
[
{
instrument_token: '12598786',
exchange_token: '49214',
tradingsymbol: 'AARTIIND21JAN1000CE',
name: 'AARTIIND'
},
{
instrument_token: '12599810',
exchange_token: '49218',
tradingsymbol: 'AARTIIND21JAN1000PE',
name: 'AARTIIND'
}
]
How to get only instrument_token in another variable in node
const ObjData = JSON.stringify(response);
console.log(ObjData.instrument_token);
Result : undefined