Re: [go-nuts] Re: json and interface unmarshalling

2018-12-14 Thread Sam Whited
Hi, In the future, please don't apply formatting when you're emailing code. Lots of people will have lots of different mail clients, and it's not always obvious how the colors will interact or whether they'll be readable against different backgrounds, or by people with various visual disabiliti

[go-nuts] Re: json and interface unmarshalling

2018-12-14 Thread Darko Luketic
Of course after I ask my question I find the answer on my own. It's always like this. The solution is to change type MessageRequest struct { Typestring `json:"type"` Payload json.RawMessage `json:"payload"` } So the payload isn't unmarshalled. Now, after the MessageRequest i