I have output from json as below from curl:
{'TableViewConfig': {'displayLength': 50, 'Resources': ...}}
it needs to be passed in another curl get command with data but in below format:
{\"TableViewConfig\":{\"displayLength\":50,\"Resources\":...}}
Can you please help in resolving the str replace in python dict?
Tried below, but it didnt work:
request = 'url'
response = requests.get(request)
data = json.loads(response)
print(data)
orig = list(map(lambda item: dict((k.replace(''', ''\'), v.replace(''', ''\')) for k, v in item.items()), data))