title: Issue with accessing JSON Covid Data
body: <p><strong>Background on my application</strong> </p>
  
  <p>I am using react and node js. I connected node.js to react.js using axios. </p>
  
  <p><strong>Issue</strong></p>
  
  <p>I'm trying to access the cases (5226) in Afganistan, but I can't seem to get the right variable for it. </p>
  
  <pre><code>const cases = covidData[0].cases
  </code></pre>
  
  <p>Whenever, i try to run the app using nodemon (to run my server) and npm start (to run my react app) I get the following error on my terminal</p>
  
  <p>Error from node terminal</p>
  
  <pre><code>[nodemon] starting `node ./server.js`
  listening at port 5000
  200
  undefined:1
  [{"updated":1589436777722,"country":"Afghanistan","countryInfo":{"_id":4,"iso2":"AF","iso3":"AFG","lat":33,"long":65,"flag":"https://disease.sh/assets/img/flags/af.png"},"cases":5226,"todayCases":0,"deaths":132,"todayDeaths":0,"recovered":648,"active":4446,"critical":7,"casesPerOneMillion":134,"deathsPerOneMillion":3,"tests":18724,"testsPerOneMillion":481,"continent":"Asia"},{"updated":1589436777821,"country":"Albania","countryInfo":{"_id":8,"iso2":"AL","iso3":"ALB","lat":41,"long":20,"flag":"https://disease.sh/assets/img/flags/al.png"},"cases":880,"todayCases":0,"deaths":31,"todayDeaths":0,"recovered"
  
  
  SyntaxError: Unexpected end of JSON input
      at JSON.parse (&lt;anonymous&gt;)
      at IncomingMessage.&lt;anonymous&gt; (/Users/alfietorres/github/covid19/server.js:13:30)
      at IncomingMessage.emit (events.js:198:13)
      at IncomingMessage.Readable.read (_stream_readable.js:504:10)
      at flow (_stream_readable.js:973:34)
      at resume_ (_stream_readable.js:954:3)
      at process._tickCallback (internal/process/next_tick.js:63:19)
  [nodemon] app crashed - waiting for file changes before starting...
  
  
  </code></pre>
  
  <p>JSON from website</p>
  
  <pre><code>[
   {
   "updated": 1589433177684,
   "country": "Afghanistan",
   "countryInfo": {
    "_id": 4,
    "iso2": "AF",
    "iso3": "AFG",
    "lat": 33,
    "long": 65,
    "flag": "https://disease.sh/assets/img/flags/af.png"
   },
   "cases": 5226,
   "todayCases": 0,
   "deaths": 132,
   "todayDeaths": 0,
   "recovered": 648,
   "active": 4446,
   "critical": 7,
   "casesPerOneMillion": 134,
   "deathsPerOneMillion": 3,
   "tests": 18724,
   "testsPerOneMillion": 481,
   "continent": "Asia"
   },
   {
  .
  .
  .
  etc
  </code></pre>
  
  <p>Node.js code </p>
  
  <pre><code>const express = require("express");
  const app = express();
  const https = require("https");
  
  const url = "https://disease.sh/v2/countries/";
  
  
  app.get("/getData",function(req,res){
    https.get(url, function(response){
        console.log(response.statusCode)
  
        response.on("data",function(data){
          const covidData=JSON.parse(data)
          // const cases = covidData.cases
          res.send({covidData});
        })
  
      }, function(err){ console.log(err)})
    }
  )
  
  
  app.listen(5000,function(){
    console.log("listening at port 5000")
  })
  
  
  </code></pre>