I have the follow string, which I'm trying to load using python 2.7 json.loads.
{
u'Status': {
u'display_name': u'Status',
u'is_updatable': True,
u'type': u'TEXT',
u'val': u'Paying',
u'source': u'API'
}, u'Create Date': {
u'display_name': u'Create Date',
u'is_updatable': True,
u'type': u'DATE',
u'val': u'2017-09-20',
u'source': u'API'
}, u'Total # of Projects': {
u'display_name': u'Total # of Projects',
u'is_updatable': True,
u'type': u'TEXT',
u'val': u'53',
u'source': u'Pixel'
}
}
I'm getting the error:
ValueError: Expecting property name: line 1 column 2 (char 1)
Any ideas?
"this", not likeu'this'. And booleans look liketrue, not likeTrue.uin front of strings since all strings are already unicode. Is that a python dict?uis not part of the standard JSON format.import ast; ast.literal_eval(string)