title: Using Lodash to loop through https.get when parsing XML to JSON in Node
body: <p>I'm trying to parse XML to JSON in Node. I'm using xml2js. I'd like to incorporate Lodash to loop through each number in an array and use the corresponding url to convert the XML to JSON. When I use the code below, I get a <code>Non-whitespace before first tag</code> error. Any idea what I'm doing wrong?</p>
  
  <pre><code>const no = [78787878,78787879, 787878780];
  
  _.forEach(no, https.get('https://tsdrapi.uspto.gov/ts/cd/casestatus/'+no+'/info.xml', function (res) {
      res.on('data', function (chunk) {
          response_data += chunk;
      });
      res.on('end', function () {
          parser.parseString(response_data, function (err, result) {
              if (err) {
                  console.log('Got error: ' + err.message);
              } else {
                  console.log(util.inspect(result, false, null));
              }
          });
      });
      res.on('error', function (err) {
          console.log('Got error: ' + err.message);
      });
  }));
  </code></pre>