import check_vectors as c
import json,pathlib
r={}
for name,text in [('noncharacter_value','{"x":"\\ufdd0"}'),('noncharacter_key','{"\\uffff":1}')]:
 try:c.strict_loads(text);r[name]='accepted'
 except Exception:r[name]='rejected'
pathlib.Path('results').mkdir(exist_ok=True)
pathlib.Path('results/probe.json').write_text(json.dumps(r,indent=2))
print(json.dumps(r))
