-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"\0" is invalid JSON #52
Comments
The following works as expected in the tests i.e. you get \u0000
|
but wait that is wrong! I wrote a test and it does not do what is expected:
we are trying to transfer stringids with value "L6645230045235\00175" |
Fixed in v2.1.25 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
we have the same problem as stated here for the Java version
alibaba/fastjson#118
so the rest is just copied:
According the JSON specification,
"\0"
is not a valid JSON string and must be encoded with four hexadecimal bytes. It's not just a theoretical problem - some python JSON parsers do not accept it.I recommend the following unit test:
The text was updated successfully, but these errors were encountered: