title: How to get JSON array on client_JS from server_JS?
body: <p>From nodeJS (with Express) I try to send JSON_array in response to client JS:</p>
  
  <pre><code>asksJsonArray = JSON.parse(fs.readFileSync("tasks.json", 'utf-8'));
  
  app.get('/getArr', function (req, res) {
      readJsonContent();
      res.json(JSON.stringify(TasksJsonArray)); //sending JSON array to client_JS in response
  });
  </code></pre>
  
  <p>On client-side I want to get it, but nothing receive:</p>
  
  <pre><code>$.get('/getArr').success(function(res) {
    var currencyData = JSON.parse(res);
    if (!currencyData.rates) {
      // possibly handle error condition with unrecognized JSON response
      alert("currency data not found!");
    } else {
      taskArr = currencyData;
    }
  })
  </code></pre>
  
  <p>So I always receive msg 'currency data not found!' ...</p>