// MarshalJSON assemble gss.Feed struct
11271
func (f Feed) MarshalJSON() ([]byte, error) {
	var categories []Category
	if len(f.Channel.Categories) > 0 {
		categories = f.Channel.Categories
	}

	var date string
	if f.Channel.PubDate != "" {
		date = f.Channel.PubDate
	} else if f.Channel.Modules.DublinCore.Date != "" {
		date = f.Channel.Modules.DublinCore.Date
	}

	var updated string
	if f.Channel.LastBuildDate != "" {
		updated = f.Channel.LastBuildDate
	} else if f.Channel.Modules.DublinCore.Modified != "" {
		updated = f.Channel.Modules.DublinCore.Modified
	}

	gf := &struct {
		Title       string     `json:"title"`
		Link        string     `json:"link"`
		Description string     `json:"description"`
		Image       Image      `json:"image"`
		CopyRight   string     `json:"copyright"`
		PubDate     string     `json:"pubdate"`
		Updated     string     `json:"updated"`
		Categories  []Category `json:"categories"`
		Items       []Item     `json:"items"`
	}{
		Title:       f.Channel.Title,
		Link:        f.Channel.Link,
		Description: f.Channel.Description,
		Image:       f.Channel.Image,
		CopyRight:   f.Channel.CopyRight,
		PubDate:     date,
		Updated:     updated,
		Categories:  categories,
		Items:       f.Channel.Items,
	}
	return json.Marshal(gf)
}
486285
func (v Stored) MarshalJSON() ([]byte, error) {
	w := jwriter.Writer{}
	easyjson692db02bEncodeGithubComMailgunMailgunGoEvents1(&w, v)
	return w.Buffer.BuildBytes(), w.Error
}
387807
func (timestamp Timestamp) MarshalJSON() ([]byte, error) {
	return []byte(time.Time(timestamp).UTC().Format(timestampFormat)), nil
}
264152
func (sqs *SQSTaskState) MarshalJSON() ([]byte, error) {
	return sqs.BaseTask.marshalMergedParams("arn:aws:states:::sqs:sendMessage",
		&sqs.parameters)
}
297688
func (v MailingList) MarshalJSON() ([]byte, error) {
	w := jwriter.Writer{}
	easyjsonCce3d1beEncodeGithubComMailgunMailgunGoEvents3(&w, v)
	return w.Buffer.BuildBytes(), w.Error
}
744285
func (chunk *MessageChunk) MarshalJSON() ([]byte, error) {
	data, err := json.Marshal(chunk.message.Record)
	if err != nil {
		return nil, err
	}
	option, err := json.Marshal(chunk.message.Option)
	if err != nil {
		return nil, err
	}
	return []byte(fmt.Sprintf("[\"%s\",%d,%s,%s]", chunk.message.Tag,
		chunk.message.Time, data, option)), err
}
1203687
func (e Enclosure) MarshalJSON() ([]byte, error) {
	ge := &struct {
		URL    string `json:"url"`
		Length int64  `json:"length"`
		Type   string `json:"type"`
	}{
		URL:    e.URL,
		Length: e.Length,
		Type:   e.Type,
	}
	return json.Marshal(ge)
}
1023916
func (v CBPerson) MarshalJSON() ([]byte, error) {
	w := jwriter.Writer{}
	easyjsonB0500db0EncodeGithubComFrancoispqtGojayBenchmarks1(&w, v)
	return w.Buffer.BuildBytes(), w.Error
}
235281
func (v bulkIndexRequestCommandOp) MarshalJSON() ([]byte, error) {
	w := jwriter.Writer{}
	easyjson9de0fcbfEncodeGithubComOlivereElastic(&w, v)
	return w.Buffer.BuildBytes(), w.Error
}
72268
func (cmp *TimestampLessThan) MarshalJSON() ([]byte, error) {
	return json.Marshal(&struct {
		Variable          string
		TimestampLessThan string
	}{
		Variable:          cmp.Variable,
		TimestampLessThan: cmp.Value.Format(time.RFC3339),
	})
}
680581
func (d Datapoint) MarshalJSON() ([]byte, error) {
	structCopy := map[string]interface{}{
		"timestamp": ToUnixMilli(d.Timestamp),
		"value":     d.Value,
	}

	if len(d.Tags) > 0 {
		structCopy["tags"] = d.Tags
	}

	b, err := json.Marshal(structCopy)

	return b, err
}
499878
func (v RegistryMessage) MarshalJSON() ([]byte, error) {
	w := jwriter.Writer{}
	easyjson639f989aEncodeCodeCloudfoundryOrgGorouterMbus2(&w, v)
	return w.Buffer.BuildBytes(), w.Error
}
1137036
func (s JSONMapSlice) MarshalJSON() ([]byte, error) {
	w := &jwriter.Writer{Flags: jwriter.NilMapAsEmpty | jwriter.NilSliceAsEmpty}
	s.MarshalEasyJSON(w)
	return w.BuildBytes()
}
399790
func (v DSUser) MarshalJSON() ([]byte, error) {
	w := jwriter.Writer{}
	easyjsonCfe4e5f0EncodeGithubComFrancoispqtGojayBenchmarks1(&w, v)
	return w.Buffer.BuildBytes(), w.Error
}
898834
func (t Any) MarshalJSON() ([]byte, error) {
	return json.Marshal(map[string]interface{}{
		"type": t.typeMarker(),
		"of":   []Type(t),
	})
}
413851
func (s *Sources) MarshalJSON() ([]byte, error) {
	srcs := make([]Source, len(s.Sources))
	for i, src := range s.Sources {
		srcs[i] = Source{src}
	}
	return json.Marshal(srcs)
}
504045
func (s Services) MarshalJSON() ([]byte, error) {
	data, err := s.MarshalYAML()
	if err != nil {
		return nil, err
	}
	return json.MarshalIndent(data, "", "  ")
}