I'm working with the following JSON structures
{
"-L6Tr0Wl5fuG3tDgUPCa": {
"List": "{'x': [0.02245, 0.02196], 'y': [0.96941, 0.97014], 'z': [0.05344, 0.05368]}",
"Index": "17361"
},
"-L6Tr4j05NV6BJKcaRSe": {
"List": "{'x': [0.03196, 0.01537], 'y': [0.96795, 0.96966], 'z': [0.05051, 0.04929]}",
"Index": "17362"
}
}
The name of each entry is random (e.g. L6Tr0Wl5fuG3tDgUPCa) that is generated by firebase whenever we push a new entry. What is the best way to parse and iterate through each entry of such a JSON file in python?
The file is huge with a couple of thousands of such entries.
python parse jsonon SO? did you do any other reasearch?for key in dictName:and then usedictName[key]to access its content. There is also.items()and.keys()on the dict. What is the exact problem you have? show some code, an error message, expected output and whats not correct with your approach.