mirror of
https://github.com/micropython/micropython.git
synced 2025-09-07 18:30:27 +02:00
13 lines
285 B
Python
13 lines
285 B
Python
try:
|
|
import ujson as json
|
|
from ucollections import OrderedDict
|
|
except ImportError:
|
|
try:
|
|
import json
|
|
from collections import OrderedDict
|
|
except ImportError:
|
|
print("SKIP")
|
|
raise SystemExit
|
|
|
|
print(json.dumps(OrderedDict(((1, 2), (3, 4)))))
|