omnet
aien-dev/omnet
Brought by drakestapleton
omnet / om / json / test / vectors.json
| 1 | { |
| 2 | "source": "https://www.rfc-editor.org/rfc/rfc8259 and https://pkg.go.dev/encoding/json; independently authored edge cases, 2026-10-25", |
| 3 | "parse": [ |
| 4 | {"input": "null", "output": "null"}, |
| 5 | {"input": " {\"a\": [1,true,false,null]} ", "output": "{\"a\":[1,true,false,null]}"}, |
| 6 | {"input": "\"\\uD834\\uDD1E\"", "output": "\"𝄞\""}, |
| 7 | {"input": "\"\\ud800\"", "output": "\"�\""}, |
| 8 | {"input": "\"\\udc00\"", "output": "\"�\""}, |
| 9 | {"input": "\"\\ud800\\ud800\"", "output": "\"��\""}, |
| 10 | {"input": "\"<>&\"", "output": "\"\\u003c\\u003e\\u0026\""}, |
| 11 | {"input": "9007199254740993", "output": "9007199254740993"}, |
| 12 | {"input": "18446744073709551615", "output": "18446744073709551615"}, |
| 13 | {"input": "-9223372036854775808", "output": "-9223372036854775808"}, |
| 14 | {"input": "1e999999999999999999999", "output": "1e999999999999999999999"}, |
| 15 | {"input": "\"\\u0000\"", "output": "\"\\u0000\""}, |
| 16 | {"input": "\"\\/\"", "output": "\"/\""}, |
| 17 | {"input": "{\"x\":1,\"\\u0078\":2}", "output": null}, |
| 18 | {"input": "{\"x\":1,\"x\":2}", "output": null}, |
| 19 | {"input": "{\"x\":1,}", "output": null}, |
| 20 | {"input": "[1,]", "output": null}, |
| 21 | {"input": "01", "output": null}, |
| 22 | {"input": "1e+", "output": null}, |
| 23 | {"input": "true false", "output": null}, |
| 24 | {"input": "\"\\uD834\\uQQQQ\"", "output": null}, |
| 25 | {"input": "\"a\nb\"", "output": null} |
| 26 | ] |
| 27 | } |