func parseJSON(reqBody io.Reader, req *ShortenReq) error {
	body, err := ioutil.ReadAll(reqBody)
	if err != nil {
		return err
	}
	err = json.Unmarshal(body, req)
	if err != nil {
		return err
	}
	return nil
}
// parseJSON takes the Reponse body and a ShortenReq object
// and unmarshalls the JSON reponse to the ShortenReq object.
parseJSON takes the Reponse body and a ShortenReq object
and unmarshalls the JSON reponse to the ShortenReq object.
// parseJSON takes the Reponse body and a ShortenReq object // and unmarshalls the JSON reponse to the ShortenReq object .
func parseJSON(reqBody io.Reader, req *ShortenReq) error {
	body, err := ioutil.ReadAll(reqBody)
	if err != nil {
		return err
	}
	err = json.Unmarshal(body, req)
	if err != nil {
		return err
	}
	return nil
}
func parseJSON ( reqBody io . Reader , req * ShortenReq ) error { body , err := ioutil . ReadAll ( reqBody ) if err != nil { return err } err = json . Unmarshal ( body , req ) if err != nil { return err } return nil }
parseJSON takes the Reponse body and a ShortenReq object
and unmarshalls the JSON reponse to the ShortenReq object.
parseJSON takes the Reponse body and a ShortenReq object and unmarshalls the JSON reponse to the ShortenReq object .