//GetJSON Function which takes the url and the target as arguments for parsing json
GetJSON Function which takes the url and the target as arguments for parsing json
// GetJSON Function which takes the url and the target as arguments for parsing json
func GetJSON(url string, target interface{}) error {
	if strings.Contains(url, "omdb") {
		url = url + "&apikey=e389610c"
	}
	r, err := myClient.Get(url)
	if err != nil {
		return err
	}
	defer r.Body.Close()
	return json.NewDecoder(r.Body).Decode(target)
}
func GetJSON ( url string , target interface { } ) error { if strings . Contains ( url , " " ) { url = url + " " } r , err := myClient . Get ( url ) if err != nil { return err } defer r . Body . Close ( ) return json . NewDecoder ( r . Body ) . Decode ( target ) }
GetJSON Function which takes the url and the target as arguments for parsing json
GetJSON Function which takes the url and the target as arguments for parsing json
// This is a free key, and throttled to 10000 req per day