Support marshaling using json.Marshal()
gruetter opened this issue · 1 comments
gruetter commented
When a Container
is embedded into another struct
, calling json.Marshal()
on that struct
will not marshal the contents of the Container
. For that to work, Container
needs to implement method MarshalJSON() ([]byte, error)
as a custom marshaler method. I'll add a PR for this shortly.
Jeffail commented
Released under v2.3.0