So, I am trying to achieve the following. I have a json with following structure:
json = {'key1':[value11,value12], 'key2':[value12, value22]}
I want to separate each value in particular key to from a separate json while retaining its key as follows:
json1 = {'key1':value11,'key2':value12}
json2 = {'key1':value12,'key2':value22}
Builtin json module does not seems to help
listof thosedictobjects instead of separate variables?[{key:json[key]} for key in json.keys()]shouldn't this be enough?