2016-10-12 20:44:40 -04:00
|
|
|
try:
|
|
|
|
from uio import StringIO
|
|
|
|
import ujson as json
|
|
|
|
except:
|
2017-02-14 17:56:22 -05:00
|
|
|
try:
|
|
|
|
from io import StringIO
|
|
|
|
import json
|
|
|
|
except ImportError:
|
|
|
|
print("SKIP")
|
2017-06-10 13:14:16 -04:00
|
|
|
raise SystemExit
|
2016-10-12 20:44:40 -04:00
|
|
|
|
2021-03-15 09:57:36 -04:00
|
|
|
print(json.load(StringIO("null")))
|
2016-10-12 20:44:40 -04:00
|
|
|
print(json.load(StringIO('"abc\\u0064e"')))
|
2021-03-15 09:57:36 -04:00
|
|
|
print(json.load(StringIO("[false, true, 1, -2]")))
|
2016-10-12 20:44:40 -04:00
|
|
|
print(json.load(StringIO('{"a":true}')))
|