title: Is it worth the effort to try to reduce JSON size?
body: <p>I am submitting relatively lots of data from a mobile application (up to 1000 JSON objects), that I would normally encode like this:</p>
  
  <pre><code>[{
      id: 12,
      score: 34,
      interval: 5678,
      sub: 9012
  }, {
      id: ...
  }, ...]
  </code></pre>
  
  <p>I could make the payload smaller by submitting an array of arrays instead:</p>
  
  <pre><code>[[12, 34, 5678, 9012], [...], ...]
  </code></pre>
  
  <p>to save some space on the property names, and recreate the objects on the server (as the schema is fixed, or at least it is a contract between the server and the client).</p>
  
  <p>The payload in then submitted in a <code>POST</code> request, most likely over a 3G connection (or could be wifi).</p>
  
  <p>It looks like I am saving some bandwidth by using nested arrays, but I'm not sure it is noticeable when <em>gzip</em> is applied, and I'm not sure how to precisely and objectively measure the difference.</p>
  
  <p>On the other hand, the nested arrays don't <em>feel</em> like a good idea: they are less readable and thus harder to spot errors while debugging. Also, since we're flushing readability down the toilet, we could just flatten the array, since each child array has a fixed number of elements, the server could just slice it up and reconstruct the objects again.</p>
  
  <p>Any further reading material on this topic is much appreciated.</p>