sitemule / noxDB

Not only XML. SQL,JSON and XML made easy for IBM i
MIT License
41 stars 20 forks source link

Invalid escape sequences are interpreted not according to JSON spec #44

Open m1h43l opened 3 years ago

m1h43l commented 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.

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