title: How do I convert a string to object?
body: <p>I'd like to convert the string:</p>
  
  <pre><code>"{\"message\":\"success\"}"
  </code></pre>
  
  <p>into:</p>
  
  <pre><code>{:message =&gt; "success"}
  </code></pre>
  
  <p>Is there an easy way to do that in Ruby?</p>
  
  <p><code>success</code> may not be a a simple string, but another string of the same form that may be another object. </p>