json - How to access the body after a get request() in nodeJs -
i have tried use json.parse , request.on modules none of examples have seen has helped me much. can send me example of accessing "body" create array (parsing json)? i'm newbie in nodejs.
thank in advance!
var request = require("request"); var options = { method: 'get', url: 'url credentials , filter', }; request(options, function (error, response, body) { if (error) throw new error(error); console.log(body); });
Comments
Post a Comment