in src/middleware/main.go [285:292]
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 }