Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
encoding/json: behavior change for go1.14 for paragraph-sep and line-sep characters #36690
What version of Go are you using (
This is a behavior change, but I didn't dig into how far back. Here is an easier way to see what's happening (https://play.golang.org/p/c-EBn0iL9DD):
This change was introduced here: 900ebcf
I can't speak to its merits, but it's deliberate.
FWIW, I prefer the new behavior. It was weird to me that Compact actually could grow the input text.
As is now, there is no option to just return just JSONP valid JSON. The new defaults for the
IMO that's fine and this issue can be closed or transitioned into a "document the behavior change" issue.