in code/app/main.go [258:265]
func (m Message) JSONBytes() ([]byte, error) { bytes, err := json.Marshal(m) if err != nil { return []byte{}, fmt.Errorf("could not marshal json for response: %s", err) } return bytes, nil }