-
Notifications
You must be signed in to change notification settings - Fork 18k
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
encoding/json: Encoder adds trailing newlines #7767
Labels
Comments
I think the comment is referring to something like this: http://play.golang.org/p/TttaTtSu_u |
I don't think this is an issue, but I'll let Russ decide. Owner changed to @rsc. Status changed to Accepted. |
@3: JSON tokens are separated by {white-space}+. So there's infinitely many valid, but different encodings carrying the same semantics for any given set of JSON encoded values. IOW, there's no such thing as a "spurious newline" between JSON tokens. It's the test which is broken if it depends on particular white space configuration, because that can change at any time without breaking the API. IMHO: #WAI |
CL https://golang.org/cl/87420043 mentions this issue. |
This issue was closed by revision 6f25f1d. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by opennota:
The text was updated successfully, but these errors were encountered: