title: Converting string to javascript dictionary
body: <p>I have a string like this which is retrieved from a database. I need to convert the string to a Javascript dictionary.</p>
  
  <pre><code>"['content':{'type':'file','path':'callie/circle'},'video':{'videoId':'CvIr-2lMLsk','startSeconds': 15,'endSeconds': 30'}]".
  </code></pre>
  
  <p>How do I convert the above string to a Javascript dictionary? Should I convert the string to json first or not? When I try <code>json.parse</code>, an error is shown:</p>
  
  <blockquote>
    <p>Uncaught SyntaxError: Unexpected token '<br>
    at Object.parse (native)<br>
    at :2:6<br>
    at Object.InjectedScript._evaluateOn (:905:140)<br>
    at Object.InjectedScript._evaluateAndWrap (:838:34)<br>
    at Object.InjectedScript.evaluate (:694:21)</p>
  </blockquote>