1# test loading from bytes and bytearray (introduced in Python 3.6)
2
3try:
4    import ujson as json
5except ImportError:
6    try:
7        import json
8    except ImportError:
9        print("SKIP")
10        raise SystemExit
11
12print(json.loads(b"[1,2]"))
13print(json.loads(bytearray(b"[null]")))
14