I currently am attempting to edit a JSON file that has multiple listed dictionaries that incorporate the same keys but different values. I would like to change specific keys (the same ones) in every dictionary within the file. How can I do this?
For Example:
"JSON_FILE" [
{"type" : "person", 'attributes" : { "Name" : "Jack, "Age" : 24, "Hight" : 6.2}}
{"type" : "person", "attributes" : { "Name" : "Brent", "Age" : 15, "Hight" : 5.6}}
{"type" : "person", "attributes" : { "Name" : "Matt", "Age" : 30, "Hight" : 4.9}} ]
I would like to change all the 'Name' keys to be labeled as " 'NAMES' " and all the 'Hight' keys to be labeled as 'HIGHT (ft)'.
I am using Python and this is a data set of 100 dictionaries I am attempting to edit so going through one at a time is not efficient.