I want to store several variables in a json file.
I know I can dump multiple variable like this-
import json
with open('data.json', 'w') as fp:
json.dump(p_id,fp, sort_keys = True, indent = 4)
json.dump(word_list, fp, sort_keys = True, indent = 4)
.
.
.
But these variables are stored without their names and trying to load them gives errors. How do I store and extract the variables I want appropriately?