title: Sending raw data with Axios
body: <p>I am testing a server implementation and need to send invalid data to the server.
  When using axios post with Content-Type <code>application/json</code> the data gets automatically parsed as JSON.
  If the data axios receives is invalid JSON it will automatically turn this into valid JSON by quoting the data as a string.</p>
  <pre class="lang-js prettyprint-override"><code>axios.post('api/paths/invalid.json', '{&quot;invalid: ()',
    { headers: { 'Content-Type': 'application/json' } })
  </code></pre>
  <p>The above will actually send <code>&quot;{\&quot;invalid: ()&quot;</code> to the server, which will parse as valid JSON.</p>