title: Response data in postman has some additional characters
body: <p>I am using postgresql and node to create a crud application. I am having trouble sending post requests to the server. I tried testing the response data on postman, but the json data has some additional characters.</p>
  
  <p>I have tried inserting data directly in the application and it works. I also tried using x-www-form-urlencoded and it works. The problem arises when i try posting using raw in postman.</p>
  
  <pre><code>const express = require('express');
  const app = express();
  const pg = require("pg");
  const bodyParser = require('body-parser');
  
  app.use((req, res, next) =&gt; {
      res.setHeader('Access-Control-Allow-Origin', '*');
      res.setHeader('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content, Accept, Content-Type, Authorization');
      res.setHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, PATCH, OPTIONS');
      next();
  });
  
  app.use(bodyParser.urlencoded({ extended: true }));
  
  app.use(bodyParser.json());
  
  const connectionString = "postgres://postgres:dennis@localhost:5432/School";
  const pool = new pg.Pool({
      connectionString: connectionString
  });
  
  // app.use(express.json());
  
  app.get('/', (req, res, next) =&gt; {
  
      pool.connect((err, client, done) =&gt; {
          if (err) {
              console.log("not able to connect " + err);
              res.status(400).send(err);
          }
          client.query("select * from student where id= $1", [1], (err, result) =&gt; {
              done();
              if (err) {
                  console.log(err);
                  res.status(400).send(err);
              }
              res.status(200).send(result.rows);
          })
      })
  })
  
  app.get('/students', (req, res, next) =&gt; {
      pool.connect((err, client, done) =&gt; {
          if (err) {
              console.log('error while connecting ' + err)
              res.status(400).send(err);
          }
          client.query("select * from student", (err, result) =&gt; {
              done();
              if (err) {
                  console.log(err)
                  res.status(400).send(err)
              }
              res.status(200).send(result.rows)
          })
      })
  })
  
  app.post('/add', (req, res, next) =&gt; {
      pool.connect((err, client, done) =&gt; {
          if (err) {
              console.log(err)
              return res.status(400).send('could not connect ' + err);
          }
  
          client.query("insert into student (id, name, rollnumber) values($1, $2, $3)", [req.body.id, req.body.name, req.body.rollnumber], (err, result) =&gt; {
              done();
              if (err) {
                  return console.log(err)
              }
  
              res.json({
                  message: req.body
              })
          })
      })
  })
  
  app.listen(4000, () =&gt; {
      console.log('working');
  })
  </code></pre>
  
  <p>This is what i get from the req.body in postman. The json data has some funny characters.</p>
  
  <pre><code>{
      "message": {
          "{\r\n        \"id\": \"1\",\r\n        \"name\": \"jjjj\",\r\n        \"rollnumber\": \"7788\"\r\n    }": ""
      }
  }
  </code></pre>
  
  <p>This is what I expect to get <code>{"id": "1", "name": "jjj", "rollnumber": "7788"}</code></p>