title: How get back a proper json that was stored with fileInfo without the escape sequences?
body: <p>I cannot retrieve the <em>exact</em> JSON string dump (<code>json.dumps</code>) that I store in Maya's <code>fileInfo</code>.</p>
  
  <pre><code>&gt;&gt;&gt; import pymel.core as pc
  &gt;&gt;&gt; json.dumps({'foo': 123})
  '{"foo": 123}'
  &gt;&gt;&gt; pc.fileInfo['foo'] = json.dumps({'foo': 123})
  &gt;&gt;&gt; pc.fileInfo['foo']
  u'{\\"foo\\": 123}'
  &gt;&gt;&gt; json.loads(pc.fileInfo['foo']) # this produces an error because of the escape sequence
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "c:\Program Files\Autodesk\Maya2011\bin\python26.zip\json\__init__.py", line 307, in loads
  
    File "c:\Program Files\Autodesk\Maya2011\bin\python26.zip\json\decoder.py", line 319, in decode
    File "c:\Program Files\Autodesk\Maya2011\bin\python26.zip\json\decoder.py", line 336, in raw_decode
    File "c:\Program Files\Autodesk\Maya2011\bin\python26.zip\json\scanner.py", line 55, in iterscan
    File "c:\Program Files\Autodesk\Maya2011\bin\python26.zip\json\decoder.py", line 171, in JSONObject
  ValueError: Expecting property name: line 1 column 1 (char 1)
  </code></pre>
  
  <p>The problem is the when Maya stores a value it ensures that it's properly escaped. But when this string is retrieved its malformed for <code>json.loads</code>. How can I fix this?</p>
  
  <p>What I'm basically looking for is something that <em>unescapes</em> the escape sequence that MEL introduces while saving the value? So far I've failed to find anything that does this.</p>
  
  <p>MEL has a lot of similarity with C so the escape sequence is mostly identical to that of C as demonstrated above.</p>