func ParseJSON(data []byte) ([]*LogsConfig, error) {
	var configs []*LogsConfig
	err := json.Unmarshal(data, &configs)
	if err != nil {
		return nil, fmt.Errorf("could not parse JSON logs config: %v", err)
	}
	return configs, nil
}
// ParseJSON parses the data formatted in JSON
// returns an error if the parsing failed.
ParseJSON parses the data formatted in JSON
returns an error if the parsing failed.
// ParseJSON parses the data formatted in JSON // returns an error if the parsing failed .
func ParseJSON(data []byte) ([]*LogsConfig, error) {
	var configs []*LogsConfig
	err := json.Unmarshal(data, &configs)
	if err != nil {
		return nil, fmt.Errorf("could not parse JSON logs config: %v", err)
	}
	return configs, nil
}
func ParseJSON ( data [ ] byte ) ( [ ] * LogsConfig , error ) { var configs [ ] * LogsConfig err := json . Unmarshal ( data , & configs ) if err != nil { return nil , fmt . Errorf ( " " , err ) } return configs , nil }
ParseJSON parses the data formatted in JSON
returns an error if the parsing failed.
ParseJSON parses the data formatted in JSON returns an error if the parsing failed .