I am reading a server status by calling a HTTP request from a Javascript in Node JS. The resulting data structure is as follows:
{ serverStats:
{ source:
[ { '$': { mount: '/testServ.mp3' },
Connected: [ '123' ],
'content-type': [ 'audio/mpeg' ] }
] } }
I can extract "serverStats", and "source" objects by using for loop and Object.keys.
Problem: how do I access the "mount" field in source object? There's a "$" sign and I don't know what it means as I am new to NodeJS.