So I have a Python code which returns a JSON string like this one:
\'{"X": "value1", "Y": "value2", "Z": [{&
>>> import json >>> a = json.loads('{"X":"value1","Y":"value2","Z":[{"A":"value3","B":"value4"}]}') >>> a {'Y': 'value2', 'X': 'value1', 'Z': [{'A': 'value3', 'B': 'value4'}]} >>> a["Z"][0]["A"] 'value3'