I am receiving a JSON object as :
http.get(options, function(res) {
res.on('data', function (chunk) {
console.log('BODY: ' + chunk);
var obj = JSON.parse(chunk);
console.log(sys.inspect(obj));
});
});
And it prints:
BODY: [{"buck":{"email":"chris@example.com"}}]
but now I'm not able to read anything inside it. How do I get the "email" field?
Thanks