Wow that appears to be exactly the answer I'm looking for! Thank you. Just to make sure: When marshalling a struct, will fields of type json.RawMessage be ignored (simply inserted into the JSON object without further processing)?
On Thursday, August 10, 2017 at 7:27:17 PM UTC-7, Jakob Borg wrote: > > On 10 Aug 2017, at 22:11, Dmitriy Cherchenko <[email protected] > <javascript:>> wrote: > > What is the best way to send the stringified JSON object from the database > as JSON and not as a string-type value of a property in the bigger JSON > object the server is responding with? > > > Do you mean like this? > > https://play.golang.org/p/wUFYoKvDRm > > //jb > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
