According to the docs, if the Marshaller of json hits a json.RawMessage struct member, it won't apply encoding heurisitics, that's at least my understanding. Following this thread it works:
http://play.golang.org/p/b8fzGMxrMCBut what if the struct member is of type interface{}, according to the documentation, "Interface values encode as the value contained in the interface." So I thought that member Data of a struct defined as
type S struct {
Data interface{}
}
and assigned like that
Data: json.RawMessage([]byte(`{"Blah":"42"}`))
it will still end up base64 encoded.