Russ Cox
db5c5d6fa6
update go tree for reflect changes
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4353043
2011-04-08 12:27:58 -04:00
Roger Peppe
83da7d15a3
json: use base64 to encode []byte
...
R=rsc
CC=golang-dev
https://golang.org/cl/4160058
2011-02-23 11:32:29 -05:00
Russ Cox
f80d002438
json: only use alphanumeric tags
...
Almost the same definition as Go identifier names.
(Leading digits are allowed.)
Fixes #1520 .
R=r, r2
CC=golang-dev
https://golang.org/cl/4173061
2011-02-17 17:14:19 -05:00
Andrew Gerrand
047cf3161e
json: correct Marshal documentation
...
Fixes #1488 .
R=r, rsc, rog
CC=golang-dev
https://golang.org/cl/4168043
2011-02-10 13:48:14 -05:00
Andrew Gerrand
09d4bcf0f7
json: do not Marshal unexported struct fields
...
R=r, cw, niemeyer, rsc
CC=golang-dev
https://golang.org/cl/3952041
2011-01-12 11:59:33 +11:00
Russ Cox
287e45e241
json: check for invalid UTF-8
...
Fixes #1250 .
R=r
CC=golang-dev
https://golang.org/cl/3562042
2010-12-13 15:51:11 -05:00
Scott Lawrence
c5a51cc90f
json: Add package comment
...
R=golang-dev, r2, r
CC=golang-dev
https://golang.org/cl/2149047
2010-09-13 16:03:27 +10:00
Micah Stetson
b5b6ce0804
json: Add HTMLEscape
...
R=rsc
CC=golang-dev
https://golang.org/cl/1496042
2010-07-12 11:26:41 -07:00
Russ Cox
fc090a3a54
reflect: add Type.Bits method, add tags to prohibit conversions
...
gob: substitute slice for map
R=r
CC=golang-dev
https://golang.org/cl/1699045
2010-06-21 13:19:29 -07:00
Russ Cox
45bdf0367e
reflect: add Kind, remove Int8Type, Int8Value, etc.
...
update other code to match.
R=r
CC=golang-dev
https://golang.org/cl/1680044
2010-06-20 12:16:25 -07:00
Russ Cox
bec40ba516
json: preserve field name case by default
...
This matches the old JSON package behavior.
All lowercase names are not as standard as I believed,
and it seems less surprising to need to write
type T struct { Field string "field" }
to get lower case (behavior after this CL) than it does to need
to write
type T struct { Field string "Field" }
to preserve the case (behavior before this CL).
Also test and fix unmarshal into non-nil interface
value or pointer.
Fixes #744 .
R=r
CC=golang-dev
https://golang.org/cl/1013041
2010-04-27 10:24:00 -07:00
Russ Cox
dba9d62bc2
json: Marshal, Unmarshal using new scanner
...
R=r
CC=golang-dev
https://golang.org/cl/953041
2010-04-21 16:40:53 -07:00