2016-10-13 01:44:40 +01:00
|
|
|
try:
|
|
|
|
from uio import StringIO
|
|
|
|
import ujson as json
|
|
|
|
except:
|
2017-02-14 22:56:22 +00:00
|
|
|
try:
|
|
|
|
from io import StringIO
|
|
|
|
import json
|
|
|
|
except ImportError:
|
|
|
|
print("SKIP")
|
2017-06-10 18:14:16 +01:00
|
|
|
raise SystemExit
|
2016-10-13 01:44:40 +01:00
|
|
|
|
2020-03-23 02:26:08 +00:00
|
|
|
print(json.load(StringIO("null")))
|
2016-10-13 01:44:40 +01:00
|
|
|
print(json.load(StringIO('"abc\\u0064e"')))
|
2020-03-23 02:26:08 +00:00
|
|
|
print(json.load(StringIO("[false, true, 1, -2]")))
|
2016-10-13 01:44:40 +01:00
|
|
|
print(json.load(StringIO('{"a":true}')))
|