title: Converting a String into Dictionary python
body: <p>I want to have a dictionary from </p>
  
  <pre><code> &gt;&gt;&gt; page_detail_string = urllib2.urlopen("http://graph.facebook.com/Ideas4India").read()
  </code></pre>
  
  <p>It returns a string like</p>
  
  <pre><code>&gt;&gt;&gt; page_detail_string
  '{"about":"Ideas for development of India","category":"Community","description":"Platform where you can discuss and share your ideas which you think might help in betterment of our country.\\nPlease respect other community members and do not talk politics here.","is_published":true,"talking_about_count":0,"username":"Ideas4India","were_here_count":0,"id":"250014455083430","name":"Ideas 4 India","link":"http:\\/\\/www.facebook.com\\/Ideas4India","likes":23}'
  </code></pre>
  
  <p>Now i want to convert it to dictionary which i can be easily done by using ast.literal_eval</p>
  
  <pre><code>&gt;&gt;&gt; import ast
  &gt;&gt;&gt; dict_page = ast.literal_eval(page_detail_string)
  Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/usr/lib/python2.7/ast.py", line 80, in literal_eval
  return _convert(node_or_string)
  File "/usr/lib/python2.7/ast.py", line 63, in _convert
  in zip(node.keys, node.values))
  File "/usr/lib/python2.7/ast.py", line 62, in &lt;genexpr&gt;
  return dict((_convert(k), _convert(v)) for k, v
  File "/usr/lib/python2.7/ast.py", line 79, in _convert
  raise ValueError('malformed string')
  </code></pre>
  
  <p>but I think it throws this error because of </p>
  
  <pre><code>"is_published":true
  </code></pre>
  
  <p>Is there any way i can convert it to dictionary by stripping above key and value ("is_published":true).</p>
  
  <p>Thanks</p>