ordereddict to dict code example
Example 1: python Ordered dict to dict
>>> from collections import OrderedDict
>>> dict(OrderedDict([('method', 'constant'), ('data', '1.225')]))
{'data': '1.225', 'method': 'constant'}
Example 2: get first element of ordereddict
list(ordered_dict.items())[0]