Skip to content
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

control characters in JSON #2

Open
markvanderloo opened this issue Sep 22, 2017 · 1 comment
Open

control characters in JSON #2

markvanderloo opened this issue Sep 22, 2017 · 1 comment

Comments

@markvanderloo
Copy link
Member

In JSON, strings cannot contain control characters such as newline (ASCII 12). So we should replace them with their escape sequences, e.g.

NEWLINE -> \n
CARRIAGE RETURN -> (remove?)
TAB -> (replace with 2 or 4 spaces?)

this is important because we want to keep formatting of rule descriptions and indentations of rule definitions. Could be added to section 7 of the standard.

@olavtenbosch
Copy link
Member

olavtenbosch commented Sep 22, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants