I want to be able to find all occurrences of a particular json object in a json file using one of the keys that it has. For instance if I have the following json block :
{
"FNMIP": 1,
"FNMIT": 0,
"FNMP": {
"DP": {
"DT": 0,
"UF": true,
"DF": "yyyyMMdd"
},
"FP": {
"FE": null
}
},
"IE": true,
"$": "PMF"
}
I want to search for all the json block that contain this key and then apply some kind a logic to replace it with another json object. I am not able to figure out as to how to do that stuff in Python as I am new to Python.