Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def write_json(fileName, structure):
- f = open(fileName, mode='w')
- json.dump(structure, f, indent=2)
- f.close()
- def read_json(fileName):
- read = open(fileName, 'r')
- structure = json.load(read)
- read.close()
- return structure
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement