encoding/json: don't panic marshaling anonymous non-struct field
Add a check for this case and don't try to follow the anonymous type's non-existent fields. Fixes #4474. R=rsc CC=golang-dev https://golang.org/cl/6945065
Showing
Please
register
or
sign in
to comment