title: How should I map numbers to text in JSON?
body: <p>What is the best practice when it comes to mapping numbers to text in JSON? A <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map" rel="nofollow">JavaScript map</a> would be perfect as I can use numbers for keys, which I can't do with objects:
  </p>
  
  <pre><code>let map = new Map();
  
  map.set(1, 'describe 1');
  map.set(2, 'describe 2');
  </code></pre>
  
  <p>... and so on. However you can't use maps in json, as far as I know. Is the best option really just to use an array of arrays?
  </p>
  
  <pre><code>[
    [ 1, 'describe 1' ],
    [ 2, 'describe 2' ]
  ]
  </code></pre>