Answered I ended up going with pickle at the end anyway
Ok so with some advice on another question I asked I was told to use pickle to save a dictio
You asked
Ill give it a shot. How do I specify what file to dump it to/load it from?
Apart from writing to a string, the json module provides a dump()-method, which writes to a file:
>>> a = {'hello': 'world'}
>>> import json
>>> json.dump(a, file('filename.txt', 'w'))
>>> b = json.load(file('filename.txt'))
>>> b
{u'hello': u'world'}
There is a load() method for reading, too.