I have a list of lists where each list is the full path of where to modify the value.
import json
with open('main_data.json', 'r') as f:
di = json.load(f)
lists = [[0, 'data', 'Hierarchical Namespace', 'LRS', 0, 'Archive'], [0, 'data', 'Hierarchical Namespace', 'LRS', 1, 'Archive'],...]
what I want to do is for each list value to a di['list_path']=json.loads(value)
so for the first 2 lists would be (if I am to do it manually)
v1 = di[0]['data']['Hierarchical Namespace']['LRS'][0]['Archive']
di[0]['data']['Hierarchical Namespace']['LRS'][0]['Archive'] = json.loads(v1)
v2 = di[0]['data']['Hierarchical Namespace']['LRS'][1]['Archive']
di[0]['data']['Hierarchical Namespace']['LRS'][1]['Archive'] = json.loads(v2)
...