2014-09-17 17:56:34 -04:00
|
|
|
try:
|
2022-08-18 02:57:45 -04:00
|
|
|
import json
|
2014-09-17 17:56:34 -04:00
|
|
|
except ImportError:
|
2022-08-18 02:57:45 -04:00
|
|
|
print("SKIP")
|
|
|
|
raise SystemExit
|
2014-09-17 17:56:34 -04:00
|
|
|
|
|
|
|
print(json.dumps(False))
|
|
|
|
print(json.dumps(True))
|
|
|
|
print(json.dumps(None))
|
|
|
|
print(json.dumps(1))
|
|
|
|
print(json.dumps("abc"))
|
2014-09-25 12:35:56 -04:00
|
|
|
print(json.dumps("\x00\x01\x7e"))
|
2014-09-17 17:56:34 -04:00
|
|
|
print(json.dumps([]))
|
|
|
|
print(json.dumps([1]))
|
|
|
|
print(json.dumps([1, 2]))
|
|
|
|
print(json.dumps([1, True]))
|
|
|
|
print(json.dumps(()))
|
|
|
|
print(json.dumps((1,)))
|
|
|
|
print(json.dumps((1, 2)))
|
|
|
|
print(json.dumps((1, (2, 3))))
|
|
|
|
print(json.dumps({}))
|
|
|
|
print(json.dumps({"a": 1}))
|
|
|
|
print(json.dumps({"a": (2, [3, None])}))
|
2015-03-14 17:20:58 -04:00
|
|
|
print(json.dumps('"quoted"'))
|
|
|
|
print(json.dumps("space\n\r\tspace"))
|
2019-07-16 17:29:22 -04:00
|
|
|
print(json.dumps({None: -1}))
|
|
|
|
print(json.dumps({False: 0}))
|
|
|
|
print(json.dumps({True: 1}))
|
|
|
|
print(json.dumps({1: 2}))
|