func EncodeJSON(in interface{}) ([]byte, error) {
	var buf bytes.Buffer
	enc := json.NewEncoder(&buf)
	if err := enc.Encode(in); err != nil {
		return nil, err
	}
	return buf.Bytes(), nil
}
// Encodes/Marshals the given object into JSON
Encodes/Marshals the given object into JSON
// Encodes / Marshals the given object into JSON
func EncodeJSON(in interface{}) ([]byte, error) {
	var buf bytes.Buffer
	enc := json.NewEncoder(&buf)
	if err := enc.Encode(in); err != nil {
		return nil, err
	}
	return buf.Bytes(), nil
}
func EncodeJSON ( in interface { } ) ( [ ] byte , error ) { var buf bytes . Buffer enc := json . NewEncoder ( & buf ) if err := enc . Encode ( in ) ; err != nil { return nil , err } return buf . Bytes ( ) , nil }
Encodes/Marshals the given object into JSON
Encodes / Marshals the given object into JSON