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