I am writing a program that stores data in a dictionary object, but this data needs to be saved at some point during the program execution and loaded back into the dictionar
If you care about the speed use ujson (UltraJSON), which has the same API as json:
import ujson ujson.dumps([{"key": "value"}, 81, True]) # '[{"key":"value"},81,true]' ujson.loads("""[{"key": "value"}, 81, true]""") # [{u'key': u'value'}, 81, True]