In the above JSON file, I have header names like 901, 9x1 and 9x2.
I want to change the header names like this:
9x1to9119x2to912
I have tried following approach using python
tot = [911,912]
data = "above mentioned json file"
for j in data:
for i in tot:
if j == '9x1':
data[j][0] = i
The JSON file:
{
"901": [
{
"section": "Revision",
"section": "Appendix A",
"section": "Region Code",
"Table": "Region",
"Bundle": "1.0.0.9",
"Software": "1.0.0.2",
"iOS Simulator": "1.1.1.1",
"Configuration": "1.0.0.1"
}
],
"9x1": [
{
"section": "Revision",
"section": "Appendix A",
"section": "Region Code ",
"Table": "Region",
"Bundle": "1.0.0.9",
"Software": "1.0.0.2",
"iOS Simulator": "1.1.1.1",
"Configuration": "1.0.0.1"
}
],
"9x2": [
{
"section": "Revision",
"section": "Appendix A",
"section": "Region Code",
"Table": "Region",
"Bundle": "1.0.0.9",
"Software": "1.0.0.2",
"iOS Simulator": "1.1.1.1",
"Configuration": "1.0.0.1"
}
]
}