Open m1h43l opened 3 years ago
JSON spec defines what characters need to be escaped. Everything else is not valid JSON.
\g will be interpreted as \\g even though \g is not a valid escape sequence. Either document this or let the parse fail.
\g
\\g
Note: jx_error didn't return an error.
jx_error
Unit test NOXDBUT1 test case TEST_INVALID_ESCAPE_SEQUENCE. Test file: unittests/data/parser/test19-invalid-escape-sequence.json
JSON spec defines what characters need to be escaped. Everything else is not valid JSON.
\g
will be interpreted as\\g
even though\g
is not a valid escape sequence. Either document this or let the parse fail.Note:
jx_error
didn't return an error.Unit test NOXDBUT1 test case TEST_INVALID_ESCAPE_SEQUENCE. Test file: unittests/data/parser/test19-invalid-escape-sequence.json