title: Right structure for a series of dates: values
body: <p>I'm having a hard time trying to figure out what is the right JSON structure for the following set of data. I've got a sensor that logs humidity of a given room on a daily basis. Logs look like:</p>
  
  <pre><code>...
  2015-01-19 8%
  2015-01-20 13%
  ...
  </code></pre>
  
  <p>I'd like to convert it to JSON. My first bet was:</p>
  
  <pre><code>{
      '2015-01-19': 8,
      '2015-01-20': 13
  }
  </code></pre>
  
  <p>But, is it correct? Shouldn't it be:</p>
  
  <pre><code>[
      { '2015-01-19', 8 },
      { '2015-01-20', 13}
  ]
  </code></pre>
  
  <p>Or:</p>
  
  <pre><code>[
      {
          'date': '2015-01-19',
          'value': 8
      },
      {
          'date': '2015-01-20',
          'value': 13
      }
  ]
  </code></pre>
  
  <p>And, at the end of the day, is there a series of best practices I could refer to in order to help me determine what's the best structure on my own?</p>