Descriptionencoding/json: Marshal should use the last available value of duplicates instead of deleting the field
While the spec doesn't specify what to do with duplicate keys, most implementations (V8, Python) will just use the last available value instead of deleting the key all together.
Updated the tests for the change and added the test case from 8121.
*I accidently abandoned 102030043*
Fixes issue 8121.
Patch Set 1 #Patch Set 2 : diff -r 6b163ec2122a172030284060788f535ab3b9d0e3 https://code.google.com/p/go #Patch Set 3 : diff -r 6b163ec2122a172030284060788f535ab3b9d0e3 https://code.google.com/p/go #
MessagesTotal messages: 3
|