title: Data missing when sending POST req to Server via AJAX
body: <p>I'm sending some form data using a POST request via AJAX. When I console the data to be sent in AJAX it contains the entire object I want. When I go to see what I received on the server side it's missing parts of my object as well the data seems to be getting cut off in several parts. I'm not sure why there's a disconnect between what was sent vs what was received.</p>
  <p>Some relevant HTML for the form section</p>
  <pre><code>    &lt;form method='POST' action='/' id='submitText' enctype=&quot;multipart/form-data&quot;&gt;
          &lt;textarea name='csv' id='text' form='submitCSV'&gt;&lt;/textarea&gt;
          &lt;br&gt;
          &lt;button type='submit'&gt;Convert to CSV&lt;/button&gt;
      &lt;/form&gt;
  </code></pre>
  <p>This is my AJAX call</p>
  <pre><code>$(document).ready(function () {
      //your code here
      $('#submitText').on('submit', event =&gt; {
          event.preventDefault();
          let formData = $('#submitText :input').val();
   
          $.ajax({
              url: 'http://localhost:3000/',
              type: 'POST',
              data: formData,
              processData: false,
          })
          .done(() =&gt; {
              console.log('successful');
          })
          .fail(() =&gt; {
              console.log('failed');
          })
      });
  });
  </code></pre>
  <p>This is the <code>formData</code> being consoled out in the AJAX code</p>
  <pre><code>{
      &quot;firstName&quot;: &quot;Joshie&quot;,
      &quot;lastName&quot;: &quot;Wyattson&quot;,
      &quot;county&quot;: &quot;San Mateo&quot;,
      &quot;city&quot;: &quot;San Mateo&quot;,
      &quot;role&quot;: &quot;Broker&quot;,
      &quot;sales&quot;: 1000000,
      &quot;children&quot;: [
      {
        &quot;firstName&quot;: &quot;Beth Jr.&quot;,
        &quot;lastName&quot;: &quot;Johnson&quot;,
        &quot;county&quot;: &quot;San Mateo&quot;,
        &quot;city&quot;: &quot;Pacifica&quot;,
        &quot;role&quot;: &quot;Manager&quot;,
        &quot;sales&quot;: 2900000,
        &quot;children&quot;: [
          {
            &quot;firstName&quot;: &quot;Smitty&quot;,
            &quot;lastName&quot;: &quot;Won&quot;,
            &quot;county&quot;: &quot;San Mateo&quot;,
            &quot;city&quot;: &quot;Redwood City&quot;,
            &quot;role&quot;: &quot;Sales Person&quot;,
            &quot;sales&quot;: 4800000,
            &quot;children&quot;: []
          },
          {
            &quot;firstName&quot;: &quot;Allen&quot;,
            &quot;lastName&quot;: &quot;Price&quot;,
            &quot;county&quot;: &quot;San Mateo&quot;,
            &quot;city&quot;: &quot;Burlingame&quot;,
            &quot;role&quot;: &quot;Sales Person&quot;,
            &quot;sales&quot;: 2500000,
            &quot;children&quot;: []
          }
        ]
      },
      {
        &quot;firstName&quot;: &quot;Beth&quot;,
        &quot;lastName&quot;: &quot;Johnson&quot;,
        &quot;county&quot;: &quot;San Francisco&quot;,
        &quot;city&quot;: &quot;San Francisco&quot;,
        &quot;role&quot;: &quot;Broker/Sales Person&quot;,
        &quot;sales&quot;: 7500000,
        &quot;children&quot;: []
      }
    ]
  }
  </code></pre>
  <p>On the server side (using express) this is the relevant code for that POST route</p>
  <pre><code>app.post('/', (req, res) =&gt; {
      console.log(req.body);
      res.end();
  })
  </code></pre>
  <p>This is what I get when I console out <code>req.body</code></p>
  <pre><code>{
      '{\n    &quot;firstName&quot;: &quot;Joshie&quot;
      ,\n    &quot;lastName&quot;: &quot;Wyattson&quot;,\n    
      &quot;county&quot;: &quot;Sateo&quot;,\n    
      &quot;role&quot;: &quot;Broker&quot;,\n    
      &quot;sales&quot;: 1000000,\n    
      &quot;children&quot;: [\n    
          {\ateo&quot;,\n    
          &quot;role&quot;: &quot;Broker&quot;,
          \n    &quot;sales&quot;: 1000000,
          \n    &quot;children&quot;: [\n    
              {\
              ca&quot;,\n      
              &quot;role&quot;: &quot;Manager&quot;,\n      
              &quot;sales&quot;: 2900000,\n      
              &quot;chilca&quot;,\n            
              {\n          
              firstName&quot;: 
              &quot;Smitty&quot;,\n          
              &quot;lastName&quot;: &quot;Won&quot;,\n     
              &quot;county&quot;: &quot;San Mateo&quot;,\n          
              &quot;city&quot;: &quot;Redwood City&quot;,\n          
              &quot;role&quot;: &quot;Sales Person&quot;,\n          
              &quot;sales&quot;: 4800000,\n          
              &quot;children&quot;: ': [ '' 
    ]
  </code></pre>
  <p>I guess my question is is this an issue with how I'm sending the data to the server? Or is it an issue with how I'm receiving the data on the server side?</p>