1
0
mirror of https://github.com/golang/go synced 2024-10-05 02:21:22 -06:00
go/src/pkg/json
Alexander Reece 48c75c5f9c json: Properly handle nil slices.
Marshal nil slices as null and parse null value as a nil slice.
Fixes #2278.

R=rsc
CC=golang-dev
https://golang.org/cl/5257053
2011-10-31 13:59:23 -04:00
..
decode_test.go json: Properly handle nil slices. 2011-10-31 13:59:23 -04:00
decode.go json: Properly handle nil slices. 2011-10-31 13:59:23 -04:00
encode_test.go json: Properly handle nil slices. 2011-10-31 13:59:23 -04:00
encode.go json: Properly handle nil slices. 2011-10-31 13:59:23 -04:00
indent.go json: calculate Offset for Indent correctly 2011-08-22 15:19:27 +10:00
Makefile json: add struct tag option to wrap literals in strings 2011-08-29 12:46:32 -07:00
scanner_test.go csv, gob, json, mail, mime, xml: use rune 2011-10-25 22:23:54 -07:00
scanner.go csv, gob, json, mail, mime, xml: use rune 2011-10-25 22:23:54 -07:00
stream_test.go json: skip nil in UnmarshalJSON and (for symmetry) MarshalJSON 2011-09-19 11:50:41 -04:00
stream.go csv, gob, json, mail, mime, xml: use rune 2011-10-25 22:23:54 -07:00
tagkey_test.go json: allow using '$' and '-' as the struct field's tag 2011-07-13 17:41:33 -07:00
tags_test.go json: add struct tag option to wrap literals in strings 2011-08-29 12:46:32 -07:00
tags.go json: add struct tag option to wrap literals in strings 2011-08-29 12:46:32 -07:00