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
|
|
|
|
|
|
|
print(json.load(StringIO("null")))
|
|
|
|
print(json.load(StringIO('"abc\\u0064e"')))
|
|
|
|
print(json.load(StringIO("[false, true, 1, -2]")))
|
|
|
|
print(json.load(StringIO('{"a":true}')))
|