JSON_Datalist = (
    """{"id":"XXXX", "name": "xyz", "user" : { "id": "XXXX", "username":"XYZ", "group":{"id": "XXXX"}}}"""
    )
the_dict = json.loads(JSON_Datalist)
Converting JSON objects in to dictionary in python