title: Axios post adds extra key to object
body: <p>I try to post an object with axios. I need it to be in a format like this:</p>
  
  <pre><code>var dataObj = {username:"username",password:"password",data1:"data1"};
  </code></pre>
  
  <p>When i POST it with axios and catch in the backend, it adds an extra key to the object like this:</p>
  
  <pre><code>{dataObj:{username:"username",password:"password",data1:"data1"}};
  </code></pre>
  
  <p>How can i get rid of this extra field before sending it to backend so it will look like this?</p>
  
  <pre><code>{username:"username",password:"password",data1:"data1"}
  </code></pre>
  
  <p>I know i can parse it in the backend but i cant modify the backend cuz its not mine.</p>
  
  <p>This is how my axios post looks like:</p>
  
  <pre><code>axios.post('http://192.168.1.1xx:3000/data', {
      dataObj
  })
  .then(function (response) {
      console.log(response);
  })
  .catch(function (error) {
      console.log(error);
  });
  </code></pre>
  
  <p>Thanks :)</p>