First, you're return type is a Task, not what you're really returning, so you have to fix that. Next, the return statement just needs the "object" part removed. Lastly, the other answer is correct. You're jumping in the deep end without knowing how to swim. This is NOT tested, so don't go expecting this to work immediately:
public async TVShow GetTvShowData()
{
HttpClient client = new HttpClient();
var content = await client.GetStringAsync("https://api.themoviedb.org/3/tv/136311?api\_key=XXXXXXX&language=en-US");
TVShow myDeserializedClass = JsonConvert.DeserializeObject(content);
return myDeserializedClass;
}
Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak