title: Escape character inserted '\' while returning json from api node.js
body: <p>I'm trying to create on simple api using node.js
  Here is the code`var express=require("express");</p>
  
  <pre><code>var app =express();
  
  var fs=require("fs")
  var bodyParser = require('body-parser');
  
  app.use(express.static('public'));
  
  
  
  var router = express.Router();
  var port = process.env.PORT || 8081; 
  //Read file from JSON file
  
  
  router.get('/', function(req, res) {    
  
  fs.readFile('routes.JSON','utf8',function (err,data) {
      if(err){
          console.log(err);
      }
     console.log(data);
     res.json(data);
  });
  
  
  });
  
  app.use('/api', router);
  
  
  app.listen(port);
  console.log('Listening to ' + port);`
  
  Here I'm reading a json file routes.JSON and return the value to http://127.0.0.1:8081/api
  
  I'm expecting the output `
  {
    "placeid": 123,
    "timings": {
      "time":"12/03/2014:09:12",
        "geocode": {
          "long":"37.423021",
          "lat":"122.083739",
          "toLocation":"Vaikom"
        }
  
    }
  
  }`
  </code></pre>
  
  <p>But it gives the output like this</p>
  
  <p>"{\r\n  \"placeid\": 123,\r\n  \"timings\": {\r\n    \"time\":\"12/03/2014:09:12\",\r\n      \"geocode\": {\r\n        \"long\":\"37.423021\",\r\n        \"lat\":\"122.083739\",\r\n        \"toLocation\":\"Chempu\"\r\n      }\r\n    \r\n  }\r\n  \r\n}"</p>
  
  <p>I was able to write json to console without '\'.</p>