This is a valid YAML (superset of JSON). Use PyYAML to analyze it:
>>> s = '''
... {
... orange: '2',
... apple: '1',
... lemon: '3'
... }'''
>>> import yaml
>>> yaml.load(s)
{'orange': '2', 'lemon': '3', 'apple': '1'}
Additionally, since there is a tab space inside the string s, we better remove it before parsing in yaml.
s=s.replace('\t','')
.