title: jQuery Post JSON.Stringify() payload is not JSON, Indexing all characters
body: <p>So, this is driving me nuts and I've never seen this before. I'm using Javascript to post JSON to AWS Lambda. The issue is that the payload is being sent as indexed characters instead of JSON. I can't for the life of me figure out why. I use this same code in another project and don't have this issue with posting JSON. This is what is being sent:</p>
  <pre><code>0=%7B&amp;1=%22&amp;2=C&amp;3=o&amp;4=m&amp;5=p&amp;6=a&amp;7=n&amp;8=y&amp;9=N&amp;10=a&amp;11=m&amp;12=e&amp;13=%22&amp;14=%3A&amp;15=%22&amp;16=R&amp;17=T&amp;18=S&amp;19=%22&amp;20=%2C&amp;21=%22&amp;22=F&amp;23=i&amp;24=r&amp;25=s&amp;26=t&amp;27=N&amp;28=a&amp;29=m&amp;30=e.....
  </code></pre>
  <p>As you can see it's indexing every single character of the data.
  Here's my function:</p>
  <pre><code>$.ajax({
          url: serviceUrl + &quot;UpdateCompany&quot;,
          type: &quot;POST&quot;,
          data: JSON.stringify(company),
          contentType: 'application/json',
          dataType: &quot;json&quot;,
          success: function success(res) {
              if (res.status == &quot;ok&quot;) {
                  utils.notify(&quot;Company updated successfully&quot;);
  
                  callback(res.data);
              }
              else {
                  utils.notify(res.message);
              }
          },
          error: function error(res) {
              alert(&quot;Could not complete action. Please refresh the page and try again.&quot;);
          }
      })
  </code></pre>
  <p>My &quot;company&quot; object is created like this:</p>
  <pre><code>var company = {};
          company[&quot;CompanyName&quot;] = $(&quot;#txtCompany&quot;).val();
          company[&quot;FirstName&quot;] = $(&quot;#txtFirstName&quot;).val();
  </code></pre>
  <p><a href="https://i.stack.imgur.com/ACzPz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ACzPz.png" alt="enter image description here" /></a></p>
  <p>When I debug it and run JSON.stringify(company), it displays the data correctly in JSON format, but when it's sent through the POST, it's not JSON format and indexing the characters like above.</p>