title: How to post an object to API route using express without changing integers to strings
body: <p>Currenty trying to post an object with an array of integers without success. It currently changes to string.</p>
  
  <pre><code>&lt;/body&gt;
  
  &lt;/html&gt;
  
  &lt;script type="text/javascript"&gt;
  $("#button").on("click", function() {
  
     // Here we grab the form elements
     var newFriend = {
        "name": $('#name').val().trim(),
        "photo": $('#photoUrl').val().trim(),
        "scores": []
     };
  
     for (var i = 0; i &lt; 10; i++) {
  
        newFriend.scores.push(parseInt($('#Select' + (i + 1)).val()))
  
     }
  
     console.log(newFriend);
  
     var currentURL = window.location.origin;
  
     $.post(currentURL + "/api/friends", newFriend, {
  
     });
  
     return false;
  
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>it posts in my api as:</p>
  
  <pre><code>[{"name":"john","photo":"doe","scores":["2","4","5","3","1","3","1","1","5","1"]}]
  </code></pre>
  
  <p>need it to be :</p>
  
  <pre><code>[
      {
    "name":"Ahmed",
    "photo":"https://media.licdn.com/mpr/mpr/shrinknp_400_400/p/6/005/064/1bd/3435aa3.jpg",
    "scores":[
       5,
       1,
       4,
       4,
       5,
       1,
       2,
       5,
       4,
       1
          ]
      }
  ]
  </code></pre>