Ok so I can use an OrderedDict in json.dump. That is, an OrderedDict can be used as an input to JSON.
json.dump
But can it be used as an output? If so how? In my
You could always write out the list of keys in addition to dumping the dict, and then reconstruct the OrderedDict by iterating through the list?
OrderedDict