minux
changed the title
encoding/json string option: decoding struct slices: if field is null in JSON, value gets set to previous struct's field value
encoding/json: string option: decoding struct slices: if field is null in JSON, value gets set to previous struct's field value
Feb 8, 2015
I have seen this with Go 1.2.1 (bundled with App Engine), and could not find a bug report or fix.
This is not an issue with 1.4.1, so I think it has been silently/inadvertently fixed.
http://play.golang.org/p/jE3tFV8dZN
Go 1.2.1 output: "5838406743490560 5838406743490560"
Go 1.4.1 output: "5838406743490560 0"
The text was updated successfully, but these errors were encountered: