circuitpython/tests/extmod/ujson_load.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
280 B
Python
Raw Normal View History

try:
2023-08-22 11:15:46 -04:00
from io import StringIO
import json
except ImportError:
print("SKIP")
raise SystemExit
2021-03-15 19:27:36 +05:30
print(json.load(StringIO("null")))
print(json.load(StringIO('"abc\\u0064e"')))
2021-03-15 19:27:36 +05:30
print(json.load(StringIO("[false, true, 1, -2]")))
print(json.load(StringIO('{"a":true}')))