summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/json_loads_bytes.py
blob: 45cd0a35c5a9925784966fd1dd9d16d8f32f0892 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# test loading from bytes and bytearray (introduced in Python 3.6)

try:
    import json
except ImportError:
    print("SKIP")
    raise SystemExit

print(json.loads(b"[1,2]"))
print(json.loads(bytearray(b"[null]")))