I want to store a certain struct into my database that has a JSON field within it.
type Comp struct { CompId int64 `db:\"comp_id\" js
sqlx has a type JSONText in github.com/jmoiron/sqlx/types that will do what you need
JSONText
github.com/jmoiron/sqlx/types
doc for JSONText