title: Error : SyntaxError: Unexpected end of JSON input
body: <p>I am trying to  fetch a JSON file from a api website using the below code but i am getting an error saying "Unexpected end of JSON input" when I  fetch using the below code </p>
  
  <pre><code>var express = require("express");
  var app = express();
  var body = require("body-parser");
  var https = require("https");
  
  app.get("/results", function (req, res) {
      https.get("https://www.omdbapi.com/?apikey=d49698c3&amp;s=harry", function (response) {       
  
              response.on("data", function (data) {
                  var got = JSON.parse(data);
                  res.send(got.Title);
              })
      })
  });
  </code></pre>