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

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -