Is it possible to ignore a custom MarshalJSON
implementation of a struct,
and use just standard marshaling function instead?
The struct is complex, and has a lot of nested structs, all of which are
using custom MarshalJSON
, and I would like to ignore them all.
I feel that it should be trivial. Do you have an idea?
An obvious solution with a new type creation, does not work well, because the nested structs still use their MarshalJSON
s.
MarshalJSON
defined on them to begin with. – Adrian