http sends/receives data as strings… this is just the way things are. You are looking to parse the string as json.
var jsonObject = JSON.parse(data);
How to parse JSON using Node.js?
http sends/receives data as strings… this is just the way things are. You are looking to parse the string as json.
var jsonObject = JSON.parse(data);
How to parse JSON using Node.js?