title: Removing quotes from JSON Rails 4 and JBuilder
body: <p>I'm trying to send a JSON API response from my rails app to Dasheroo which expects the following format:</p>
  
  <pre><code>{
    my_statistic: { type: 'integer', value: 1, label: 'My Statistic' }
  }
  </code></pre>
  
  <p>However it is not happy with my data structure generated by the following code:</p>
  
  <p>In controller:</p>
  
  <pre><code>def count_foo_members
      @foo = Foo.all.count
  end
  </code></pre>
  
  <p>In count_foo_members.json.jbuilder:</p>
  
  <pre><code>json.foo_members do
      json.type  'integer'
      json.value @foo
      json.label 'Foo Members'
  end
  </code></pre>
  
  <p>If I open this route in my browser I can see the following:</p>
  
  <pre><code>{
      "foo_members":{"type":"integer","value":1,"label":"Foo Members"}
  }
  </code></pre>
  
  <p>From the results above, the only thing that I can see that could have an effect on the result is the fact that my JSON result has quotation marks around the JSON Key values. </p>
  
  <p>My question thus is: How can I remove these quotation marks in Rails 4 and JBuilder?</p>