]> Cypherpunks repositories - gostls13.git/commit
json: encode \r and \n in strings as e.g. "\n", not "\u000A"
authorEvan Martin <evan.martin@gmail.com>
Mon, 11 Jul 2011 14:31:08 +0000 (07:31 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 11 Jul 2011 14:31:08 +0000 (07:31 -0700)
commit2f69a7359159171c0fe2ddede22a1328f71bc4ef
treee0c8b22343dc159811f24690ca6aeeb3d3c98ebe
parentf19b24a182c445ceb3d998b2ebc20f1d8718df9b
json: encode \r and \n in strings as e.g. "\n", not "\u000A"

This is allowed by the JSON spec and is shorter/easier to read.

R=golang-dev, bradfitz, rsc
CC=golang-dev
https://golang.org/cl/4678046
src/pkg/json/encode.go