func Unmarshal(content []byte, dest interface{}) error {
	if !bytes.HasPrefix(content, jsonPrefix) {
		if len(content) > 100 {
			content = content[:100]
		}
		bodyStr := string(content)
		return fmt.Errorf("prefix %q not found, got %s", jsonPrefix, bodyStr)
	}
	content = bytes.TrimPrefix(content, []byte(jsonPrefix))
	return json.Unmarshal(content, dest)
}
Unmarshal unmarshals Gerrit JSON, stripping the security prefix.
package gerrit
import (
	"bytes"
	"encoding/json"
	"fmt"
	"time"
)
var jsonPrefix = []byte(")]}'")
type File struct {
	Status        string
	LinesInserted int `json:"lines_inserted"`
	SizeDelta     int `json:"size_delta"`
	Size          int
	Content       []byte
}
type Change struct {
	Files map[string]*File
}
type CheckerInput struct {
	UUID        string   `json:"uuid"`
	Name        string   `json:"name"`
	Description string   `json:"description"`
	URL         string   `json:"url"`
	Repository  string   `json:"repository"`
	Status      string   `json:"status"`
	Blocking    []string `json:"blocking"`
	Query       string   `json:"query"`
}
const timeLayout = "2006-01-02 15:04:05.000000000"
type Timestamp time.Time
func (ts *Timestamp) String() string {
	return ((time.Time)(*ts)).String()
}
var _ = (json.Marshaler)((*Timestamp)(nil))
func (ts *Timestamp) MarshalJSON() ([]byte, error) {
	t := (*time.Time)(ts)
	return []byte("\"" + t.Format(timeLayout) + "\""), nil
}
var _ = (json.Unmarshaler)((*Timestamp)(nil))
func (ts *Timestamp) UnmarshalJSON(b []byte) error {
	b = bytes.TrimPrefix(b, []byte{'"'})
	b = bytes.TrimSuffix(b, []byte{'"'})
	t, err := time.Parse(timeLayout, string(b))
	if err != nil {
		return err
	}
	*ts = Timestamp(t)
	return nil
}
type CheckerInfo struct {
	UUID        string `json:"uuid"`
	Name        string
	Description string
	URL         string `json:"url"`
	Repository  string `json:"repository"`
	Status      string
	Blocking    []string  `json:"blocking"`
	Query       string    `json:"query"`
	Created     Timestamp `json:"created"`
	Updated     Timestamp `json:"updated"`
}
func (info *CheckerInfo) String() string {
	out, _ := json.Marshal(info)
	return string(out)
}