title: what is the best way to convert a json formatted key value pair to ruby hash with symbol as key?
body: <p>I am wondering what is the best way to convert a json formatted key value pair to ruby hash with symbol as key:
  example: </p>
  
  <pre><code>{ 'user': { 'name': 'foo', 'age': 40, 'location': { 'city' : 'bar', 'state': 'ca' } } }
  ==&gt; 
  { :user=&gt;{ :name =&gt; 'foo', :age =&gt;'40', :location=&gt;{ :city =&gt; 'bar', :state=&gt;'ca' } } }
  </code></pre>
  
  <p>Is there a helper method can do this?</p>