micropython/tests/extmod/ujson_dumps_float.py

12 lines
205 B
Python

try:
import ujson as json
except ImportError:
try:
import json
except ImportError:
print("SKIP")
raise SystemExit
print(json.dumps(1.2))
print(json.dumps({1.5: 'hi'}))