json_string = '{"id":"0","last_modified":"undefined"}'
print(decoder.decode(json_string))
json_string = '{"last_modified":"undefined","id":"0"}'
print(decoder.decode(json_string))
Converting string to ordered dictionary?