I've two json objects, I 'm figuring out a way on how to merge them in python
y={"success":"true"}
x={"0":"740","1":"747","2":"883","3":"750","4":"769"}
I need the final result in the following manner
{"success":"true",
"data":{
"0":"740",
"1":"747",
"2":"883",
"3":"750",
"4":"769"
}
}
I am trying to append it, but its showing some error. Help me with the code in python.