// ToJSON returns a JSON representation of the object.
775703
func (l *Lock) ToJSON() (string, error) {
	data, err := json.MarshalIndent(l, "", "  ")
	if err != nil {
		return "", vterrors.Wrapf(err, "cannot JSON-marshal node")
	}
	return string(data), nil
}
1228724
func (l *GlueTableTableInputList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := GlueTableTableInput{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = GlueTableTableInputList{item}
		return nil
	}
	list := []GlueTableTableInput{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = GlueTableTableInputList(list)
		return nil
	}
	return err
}
1069357
func (l *OpsWorksLayerVolumeConfigurationList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := OpsWorksLayerVolumeConfiguration{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = OpsWorksLayerVolumeConfigurationList{item}
		return nil
	}
	list := []OpsWorksLayerVolumeConfiguration{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = OpsWorksLayerVolumeConfigurationList(list)
		return nil
	}
	return err
}
1148361
func (t Version) JSON() (output string, err error) {
	var raw []byte
	ver := Get()
	if raw, err = json.MarshalIndent(ver, "", "\t"); err != nil {
		return
	}
	return string(raw), nil
}
367585
func (l *EC2NetworkACLEntryPortRangeList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := EC2NetworkACLEntryPortRange{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = EC2NetworkACLEntryPortRangeList{item}
		return nil
	}
	list := []EC2NetworkACLEntryPortRange{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = EC2NetworkACLEntryPortRangeList(list)
		return nil
	}
	return err
}
1215475
func ToJSONName(name string) string {
	in := split(name)
	out := make([]string, 0, len(in))

	for i, w := range in {
		if i == 0 {
			out = append(out, lower(w))
			continue
		}
		out = append(out, Camelize(w))
	}
	return strings.Join(out, "")
}
1138773
func (l *EMRClusterConfigurationList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := EMRClusterConfiguration{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = EMRClusterConfigurationList{item}
		return nil
	}
	list := []EMRClusterConfiguration{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = EMRClusterConfigurationList(list)
		return nil
	}
	return err
}
727059
func ListToJSON(list []string) string {
	jsonValues_bytes, _ := json.Marshal(list)
	return string(jsonValues_bytes)
}
1172705
func (tf *TemplateFunctions) ToJSON(data interface{}) string {
	encoded, err := json.Marshal(data)
	if err != nil {
		return ""
	}

	return string(encoded)
}
1004118
func (f *JSONFeed) ToJSON() (string, error) {
	data, err := json.MarshalIndent(f, "", "  ")
	if err != nil {
		return "", err
	}

	return string(data), nil
}
1136025
func (l *EC2LaunchTemplateNetworkInterfaceList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := EC2LaunchTemplateNetworkInterface{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = EC2LaunchTemplateNetworkInterfaceList{item}
		return nil
	}
	list := []EC2LaunchTemplateNetworkInterface{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = EC2LaunchTemplateNetworkInterfaceList(list)
		return nil
	}
	return err
}
60384
func (l *BudgetsBudgetSpendList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := BudgetsBudgetSpend{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = BudgetsBudgetSpendList{item}
		return nil
	}
	list := []BudgetsBudgetSpend{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = BudgetsBudgetSpendList(list)
		return nil
	}
	return err
}
284302
func BytesToJSON(b *[]byte) (*interface{}, error) {
	var container interface{}
	err := json.Unmarshal(*b, &container)

	if err != nil {
		return nil, err
	}

	return &container, nil
}
1171805
func (l *EMRInstanceGroupConfigConfigurationList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := EMRInstanceGroupConfigConfiguration{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = EMRInstanceGroupConfigConfigurationList{item}
		return nil
	}
	list := []EMRInstanceGroupConfigConfiguration{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = EMRInstanceGroupConfigConfigurationList(list)
		return nil
	}
	return err
}
1311751
func (s serviceStopMessage) JSON() string {
	serviceStopJSONBytes, e := json.MarshalIndent(s, "", " ")
	fatalIf(probe.NewError(e), "Unable to marshal into JSON.")

	return string(serviceStopJSONBytes)
}
775171
func (s *Server) JSON(w http.ResponseWriter, status int, data interface{}) {
	w.Header().Set("Content-Type", "application/json")
	w.WriteHeader(status)
	json.NewEncoder(w).Encode(data)
}
1141280
func (l *EMRInstanceGroupConfigMetricDimensionList) UnmarshalJSON(buf []byte) error {
	// Cloudformation allows a single object when a list of objects is expected
	item := EMRInstanceGroupConfigMetricDimension{}
	if err := json.Unmarshal(buf, &item); err == nil {
		*l = EMRInstanceGroupConfigMetricDimensionList{item}
		return nil
	}
	list := []EMRInstanceGroupConfigMetricDimension{}
	err := json.Unmarshal(buf, &list)
	if err == nil {
		*l = EMRInstanceGroupConfigMetricDimensionList(list)
		return nil
	}
	return err
}