func ToJSON(a interface{}) string {
	byt, err := json.Marshal(a)
	if err != nil {
		return fmt.Sprintf("{\"ERROR\": \"%v\"}", err)
	}
	return string(byt)
}
ToJSON converts any object to its compact JSON string
equivalent.  If an error is encountered while marshalling an ERROR
key will be created with the string value of the error as its value.
package util
import (
	"encoding/json"
	"fmt"
	"gopkg.in/yaml.v3"
)