You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to marshal into json struct which have embended struct with supports custom json.Marshaler interface.
Ex:
struct {
A // Support custom json.Marshaler interface
Field2 string
}
The text was updated successfully, but these errors were encountered:
kirill-a-belov
changed the title
encoding/json: Marshaling embedded structures which supports supports json.Marshaler interface
encoding/json: Marshaling embedded structures which supports json.Marshaler interface
Dec 19, 2018
kirill-a-belov
changed the title
encoding/json: Marshaling embedded structures which supports json.Marshaler interface
encoding/json: Marshaling embedded structures which supports custom json.Marshaler interface
Dec 19, 2018
Uh oh!
There was an error while loading. Please reload this page.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Didn't try.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Try to marshal into json struct which have embended struct with supports custom json.Marshaler interface.
Ex:
struct {
A // Support custom json.Marshaler interface
Field2 string
}
https://play.golang.com/p/wqQV8Mp_11y
What did you expect to see?
All fields of structure.
What did you see instead?
Only fields of embedded structure.
The text was updated successfully, but these errors were encountered: