micropython/tests/extmod/json_dumps_float.py

9 wiersze
135 B
Python

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