-
Notifications
You must be signed in to change notification settings - Fork 7
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
Escaped characters in keys and values #1
Comments
From http://json.org/, it is my understanding that '/' should have a backslash escape. Both pass validation through JSONLint though. It seems to be a frequently discussed topic, e.g.:
It's all taking place there: |
Thank you @gllmflndn: I was not aware of this issue! From the thread you linked to, my understanding is that both notations are valid, and that:
is equivalent to
In this document "control characters" are explicitly defined as Do you think it would make sense to use the non-escaped version by default? Or create an option to espace only if mandatory? |
JSON specification(s) are sometimes hard to follow, see:
|
Forward slashes are not escaped any more, see 3a81c3d, and this behaviour is now compatible with |
Hi @gllmflndn! The following example (from our discussion at: incf-nidash/nidmresults-spm#40 (comment)):
returns:
Is there any particular reason for the slashes to be escaped? I was hoping we could get:
I am happy to investigate this and send a PR but I would like to make sure I understand when the escapes are needed.
Thank you in advance!
The text was updated successfully, but these errors were encountered: