// JSONReader reads the value and converts it to JSON-encoded value
JSONReader reads the value and converts it to JSON-encoded value
// JSONReader reads the value and converts it to JSON - encoded value
func JSONReader(v interface{}) (io.Reader, error) {
	buf := new(bytes.Buffer)
	err := json.NewEncoder(buf).Encode(v)
	if err != nil {
		return nil, fmt.Errorf("Failed to encode %v into JSON\n" , v)
	}
	return buf, nil
}
func JSONReader ( v interface { } ) ( io . Reader , error ) { buf := new ( bytes . Buffer ) err := json . NewEncoder ( buf ) . Encode ( v ) if err != nil { return nil , fmt . Errorf ( " \n " , v ) } return buf , nil }
JSONReader reads the value and converts it to JSON-encoded value
JSONReader reads the value and converts it to JSON - encoded value