func createJSON(r interface{}) ([]byte, error) {
	jsonResp, err := json.Marshal(r)
	if err != nil {
		return nil, err
	}
	return jsonResp, nil
}
// createJSON takes any Resp type as an argument
// and returns a JSON response with its fields as attributes and values.
createJSON takes any Resp type as an argument
and returns a JSON response with its fields as attributes and values.
// createJSON takes any Resp type as an argument // and returns a JSON response with its fields as attributes and values .
func createJSON(r interface{}) ([]byte, error) {
	jsonResp, err := json.Marshal(r)
	if err != nil {
		return nil, err
	}
	return jsonResp, nil
}
func createJSON ( r interface { } ) ( [ ] byte , error ) { jsonResp , err := json . Marshal ( r ) if err != nil { return nil , err } return jsonResp , nil }
createJSON takes any Resp type as an argument
and returns a JSON response with its fields as attributes and values.
createJSON takes any Resp type as an argument and returns a JSON response with its fields as attributes and values .