 |
json – JavaScript Object Notation Serializer - Python Module of the Week
Encoding Dictionaries The JSON format expects the keys to a dictionary to be strings. If you have other types as keys in your dictionary, trying to encode the object will produce a ValueError. One way to work around that limitation is to skip over non-str
pymotw.com |
 |