title: Passing boolean value in JSON
body: <p>My setup: Rails 2.3.10, Ruby 1.8.7</p>
  
  <p>This is a simple question but I want to pass a boolean value for a field in a JSON string that will be interpreted by Rails as boolean, e.g., what do I use for "a" below? Is it 0 or 1 or "true" or "false" or ?</p>
  
  <pre><code>{ 
    "a": ??,
    "b": [1,2,3...],
    "c": 3
  } 
  </code></pre>
  
  <p>Is there another way to test for true or false in Ruby besides comparing it to true, e.g.,</p>
  
  <pre><code>a = params[:a]
  if a == true
  </code></pre>