I have an python dict
whose keys and values are strings, integers and other dicts and tuples (json does not support those). I want to save it to a text file and then read it from the file.
Basically, I want a read
counterpart to the built-in print
(like in Lisp).
Constraints:
- the file must be human readable (thus pickle is out)
- no need to detect circularities.
Is there anything better than json?