encoding/json: Multiple issues with decoding of nulls into ",string" tagged fields. #22177
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
I've been playing around with the
megacheck
tool, and found thatNullTestStrings
type inencoding/json
's tests is unused. It seems to be aimed at checking decoding of nulls into",string"
fields, but there were no tests, which is the first issue. The second is that if you create one, it fails: https://play.golang.org/p/5XjdhoDDkq.It seems to me that there are some inconsistencies between decoding
null
into a simple field and decoding"null"
into a",string"
field.Formalities:
The text was updated successfully, but these errors were encountered: