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:
|
|
|
|
import sys
|
|
|
|
print("SKIP")
|
|
|
|
sys.exit()
|
2016-10-12 20:44:40 -04: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}')))
|