Custom MarshalJSON() never gets called in Go Custom MarshalJSON() never gets called in Go json json

Custom MarshalJSON() never gets called in Go