• Russ Cox's avatar
    json: preserve field name case by default · bec40ba5
    Russ Cox authored
    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
    bec40ba5
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libcgo Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.386 Loading commit data...
Make.amd64 Loading commit data...
Make.arm Loading commit data...
Make.cmd Loading commit data...
Make.common Loading commit data...
Make.conf Loading commit data...
Make.pkg Loading commit data...
all-arm.bash Loading commit data...
all-nacl.bash Loading commit data...
all.bash Loading commit data...
clean.bash Loading commit data...
env.bash Loading commit data...
make.bash Loading commit data...
quietgcc.bash Loading commit data...
run.bash Loading commit data...
sudo.bash Loading commit data...
version.bash Loading commit data...