[go-nuts] Decode as JSON and store the JSON as blob in DB

2017-11-16 Thread Tamás Gulácsi
json.RawMessage -- 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 golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/opto

[go-nuts] Decode as JSON and store the JSON as blob in DB

2017-11-16 Thread mailtov16
Hello, I am new to Go. I have structure like this for my REST POST request: type Service struct { ID string `json:"id,omitempty" db:"id"` Name string `json:"name" db:"name"` Contract struct { Ha string `json:"ha"` ServiceTime int`json:"service_time"` Region string