i'm loading a JSON with python, say my JSON Data is this:
{
"data":{
"0":{
},
"1":{
},
"2":{
},
"3":{
},
"4":{
},
"5":{
}
}
}
and my code is something like this:
import json
with open('test.json') as data_file:
data = json.load(data_file)
print(data['data'].keys())
and my output is this
As you can see, the order of the keys is different from the original order, i really need to get the same order.But i dont know how, thanks for your help and sorry for my english