i am trying to load a json file and then trying to parse it later. however, in the output i keep getting the 'u' characters. I tried to open the file with encoding='utf-8' which dint solve the problem. i am using python 2.7. is there a straight forward approach or workaround to ignore and get ride of the 'u' characters in the output.
import json
import io
with io.open('/tmp/install-report.json', encoding='utf-8') as json_data:
d = json.load(json_data)
print d
o/p
{u'install': {u'Status': u'In Progress...', u'StartedAt': 1471772544,}}
p.s: i went trough this post Suppress the u'prefix indicating unicode' in python strings but that doesn't have a solution for python 2.7