-
Notifications
You must be signed in to change notification settings - Fork 657
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
--report json
prints invalid JSON on "NO TABS" error
#2259
Comments
Thanks for reporting this! To set expectations:
Finally, please be patient with the core team. They are trying their best with limited resources. |
lydell
added a commit
to lydell/elm-watch
that referenced
this issue
May 8, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Quick Summary:
--report json
prints invalid JSON on "NO TABS" errorSSCCE
JSON.parse(`"\t"`)
.Additional Details
The JSON spec (see the sidebar to the right) defines a JSON string as:
As you can see, a “character” can be anything from U 0020 (regular space) to U 10FFFF, except double quote and backslash (because of escapes). (How to read that syntax.) A tab character is U 0009, which is outside of that range.
Here’s a StackOverflow answer discussing tabs in JSON
Luckily, consumers of
--report json
can replace literal tab characters with\t
and then parse.The text was updated successfully, but these errors were encountered: