title: How can I receive a json in express server
body: <p>I need to receive a JSON from my front in React. But the JSON comes to me in a strange way (an object with the data in string), I don't know how to return it to type object again.</p>
  <p>I send this.</p>
  <pre><code>const data = {
          email: 'emailc@email.com',
          password: 'test'
      }
      const options = {
          method: 'POST',
          body: JSON.stringify(data),
          mode: 'no-cors',
          headers: {
              'Content-Type': 'application/x-www-form-urlencoded'
          }
      }
  
      const onsubmit = (e) =&gt; {
          //evitamos que se haga la peticion en automatico
          e.preventDefault();
          fetch('http://localhost:3001/user/signin',options)
          .then(res =&gt; res.json())
          .catch(error =&gt; console.error('Error:', error))
          .then(response =&gt; console.log('Success:', response));
          console.log('send on submit');
      }
  </code></pre>
  <p>and I get this on the express server:</p>
  <pre><code>[Object: null prototype] {
    '{&quot;email&quot;:&quot;emailc@email.com&quot;,&quot;password&quot;:&quot;test&quot;}': ''
  }
  </code></pre>
  <p>My server is configured in this way:</p>
  <pre><code>const express = require('express');
  const app = express();
  const morgan = require('morgan');
  const cors = require('cors');
  const {mongoose} = require('./src/database/connection')
  
  const Parser = require(&quot;body-parser&quot;).urlencoded({ extended: false });
  
  //config
  app.set('port', process.env.PORT || 3001);
  
  
  //middlewares
  app.use(morgan('dev'));
  app.use(Parser);
  app.use(cors()); //accepts connection from all directions
  
  //Routes
  app.use(require('./src/test'));
  app.use(require('./src/routes/users'));
  
  //Server
  app.listen(app.get('port'), (req, res) =&gt; {
      console.log(`Server on port ${app.get('port')}`);
  })
  </code></pre>
  <p>I think I have misconfigured the body-parser, please help, it is my first API.</p>