title: Object properties get lost on $.ajax POST request
body: <p>I'm uploading a large data set as JSON via $.ajax, and some properties get lost during this upload. For the testing purpose, the server returns the first row, where a property is missing.</p>
  
  <h2>javascript</h2>
  
  <pre><code>function parseResults(data) {
      var send = [];
      for (var x in data) {
          var row = data[x],
              code = row["ORDER"];
          if (typeof code === "undefined") continue;
          if (code == "") continue;
          var temp = {
              code: code,
              date: row["CREATED DATE"] + " " + row["CREATED TIME"],
              pt: row["PAYMENT_CODE"],
              loc: row["LOCATION"],
              fv: row["ORDER VOLUME"],
              fpdf: row["DELIVERY FEE"],
              fpsf: row["SERVICE FEE"],
              vsf: row["REST. SERVICE FEE"],
              pr: row["PAY RESTAURANT"],
              to: row["TOTAL ORDER"],
              delc: row["ORDER PROVIDER"],
              city: row["City"],
              vp: row["VENDOR PROVIDER"],
              rest: row["VENDOR"],
              vouch: row["VOUCHER AMOUNT"],
              cust: row["CUST CODE"],
              st: row["STATUS"]
          };
          send.push(temp);
      }
      sendResults(send);
  }
  
  function sendResults(data) {
      for (var x in data) {
          if (data[x].code == "m0sq-p0yq") {
              // this one is here just for testing
              // purposes, you will see
              console.log(data[x]);
          }
      }
      $.ajax({
          type: "POST",
          url: "/ordersfp/process",
          data: {
              data: data
          },
          success: function(response) {
              console.log(response);
          }
      }, "json");
  }
  </code></pre>
  
  <h2>php</h2>
  
  <pre><code>public function handleProcess()
  {
      $data = Input::all();
      foreach ($data['data'] as $row) {
          if (!isset($row['cust'])) {
              return $row;
          }
          // ...
      }
  }
  </code></pre>
  
  <p>So everything works like it should, the only problem is that this particular element with code <code>"m0sq-p0yq"</code> loses property <code>cust</code> somewhere.</p>
  
  <p><img src="https://i.stack.imgur.com/g1HxB.png" alt="Console Log of this object"></p>
  
  <p>Besides, I just noticed that <code>st</code> property is also lost -.- Please, help :)</p>