title: JSON object for just an integer
body: <p>Silly question, but I'm unable to figure out..</p>
  
  <p>I tried the following in Ruby:</p>
  
  <pre><code>irb(main):020:0&gt; JSON.load('[1,2,3]').class
  =&gt; Array
  </code></pre>
  
  <p>This seems to work. While neither</p>
  
  <pre><code>JSON.load('1').class
  </code></pre>
  
  <p>nor this </p>
  
  <pre><code>JSON.load('{1}').class
  </code></pre>
  
  <p>works. Any ideas?</p>