micropython/tests/extmod/json_dumps_ordereddict.py

9 lines
170 B
Python

try:
import json
from collections import OrderedDict
except ImportError:
print("SKIP")
raise SystemExit
print(json.dumps(OrderedDict(((1, 2), (3, 4)))))