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.
Fixes issue 8121.
Patch Set 1 #Patch Set 2 : diff -r 5bf1a8b3aeea https://code.google.com/p/go #Patch Set 3 : diff -r 5bf1a8b3aeea https://code.google.com/p/go #
MessagesTotal messages: 3
|