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