title: Get last element of a JSON object in JavaScript
body: <p>I got a json object in JavaScript like:</p>
  <pre><code>var json = {&quot;20121207&quot;:&quot;13&quot;, &quot;20121211&quot;:&quot;9&quot;, &quot;20121213&quot;:&quot;7&quot;, &quot;20121219&quot;:&quot;4&quot;};
  </code></pre>
  <p>without knowing the name of the last key. (The keys are in ascending order)</p>
  <p>How can I read the value (and key) of the last element?</p>