// DecodeJSON decodes request's JSON body into destination object.
DecodeJSON decodes request's JSON body into destination object.
// DecodeJSON decodes request ' s JSON body into destination object .
func DecodeJSON(r *http.Request, v interface{}) error {
	if err := json.NewDecoder(r.Body).Decode(v); err != nil {
		return ErrInvalidJSON
	}
	return nil
}
func DecodeJSON ( r * http . Request , v interface { } ) error { if err := json . NewDecoder ( r . Body ) . Decode ( v ) ; err != nil { return ErrInvalidJSON } return nil }
DecodeJSON decodes request's JSON body into destination object.
DecodeJSON decodes request ' s JSON body into destination object .