import json # # to iterate through existing json file and find the correct json file # def find_json(id): # get path/to/file # return file # # # def save_json(id, name, email, friend, content): # file # data = {"id": "path/to/file", "name":,"email":,"friend":,"content":} # with open('file.json', 'w') as f: # json.dump(data, f) # def jaction(original, id, name, email, friend, content): # f = find_json_file(id) # data = make_dict(f) # updated = update_dict(data, name, email, friend, content) # save_json_file(f, updated) # # to find the file with the correct id # def find_json_file(): # f = open('file.json', 'w') # iterate files to find id # return f # # saving the json file # def save_json_file(name, email, friend, content): # dict= request.args.get( # write(file, json.dump(data))