I am struggling with the following problem: I want to convert an OrderedDict like this:
OrderedDict
OrderedDict([(\'method\', \'constant\'), (\'data\', \'1.
If somehow you want a simple, yet different solution, you can use the {**dict} syntax:
{**dict}
from collections import OrderedDict ordered = OrderedDict([('method', 'constant'), ('data', '1.225')]) regular = {**ordered}