Dynamically updating keys in json using python
DataTransform.py - Main file which runs the transformation where it refers jsonMap dict as lookup for old value and new value of the key to be tranformed. It is reading bwi.json as input json and finding keys with mentioned in jsonMap dict and replacing them with corresponding value in jsonMaps dict.
bwi.json - Input file in which the key is updated dynamically based on jsonMap dict.