Expecting property name enclosed in double quotes - converting a string to a json object using Python
<p>I am trying to convert a string to JSON using python using the following code:</p>

<pre><code>myStr = '[{u"total": "54", u"value": "54", u"label": u"16 Sep"}, {u"total": "58", u"value": "4", u"label": u"16 Sep"}, {u"total": "65", u"value": "7", u"label": u"16 Sep"}, {u"total": "65", u"value": "0", u"label": u"16 Sep"}]'

import json
json.loads(myStr)
</code></pre>

<p>I get the following error:</p>

<pre><code>ValueError: Expecting property name enclosed in double quotes: line 1 column 3 (char 2)
</code></pre>

<p>This makes no sense as every property has double quotes, not single ones. Any help?</p>

<p>Remove the unicode qualifier from the string. <code>json.loads</code> assumes the property names are already in unicode.</p>

python json