summaryrefslogtreecommitdiff
path: root/tests/extmod/ujson_load.py
blob: 7cec9246b82c51dbc4494ebc74ba02034c573fe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
try:
    from uio import StringIO
    import ujson as json
except:
    try:
        from io import StringIO
        import json
    except ImportError:
        print("SKIP")
        raise SystemExit

print(json.load(StringIO("null")))
print(json.load(StringIO('"abc\\u0064e"')))
print(json.load(StringIO("[false, true, 1, -2]")))
print(json.load(StringIO('{"a":true}')))