func (js *JSON) Scan(src interface{}) error {
	if src == nil {
		*js = make(JSON)
		return nil
	}
	source, ok := src.([]byte)
	if !ok {
		return errors.New("Type assertion .([]byte) failed.")
	}
	if err := json.Unmarshal(source, js); err != nil {
		return err
	}
	return nil
}
Scan implements sql.Scanner interface
package igor
import (
	"database/sql/driver"
	"encoding/json"
	"errors"
)
type JSON map[string]interface{}
func (js JSON) Value() (driver.Value, error) {
	return json.Marshal(js)
}