Your MovieNew class does not match the JSON.
If I convert the "display" string to a genuine JSON string:
{"movie_results":[{"title":"Hum Tum and Them","year":2019,"imdb_id":"tt10045256"},
{"title":"Hum Tum Aur Ghost","year":2010,"imdb_id":"tt1465493"},
{"title":"Hum Tum Aur Woh","year":1971,"imdb_id":"tt0378073"},
{"title":"Hum Tum Dushman Dushman","year":2015,"imdb_id":"tt6002986"},
{"title":"Hum Tum Pe Marte Hain","year":1999,"imdb_id":"tt0226786"},
{"title":"Hum Tum Shabana","year":2011,"imdb_id":"tt2034011"},
{"title":"Hum Tum","year":2004,"imdb_id":"tt0378072"},
{"title":"Hum Tum","year":2014,"imdb_id":"tt10039022"},
{"title":"Hum Tumhare Hain Sanam","year":2002,"imdb_id":"tt0222024"}],
"search_results":9,"status":"OK","status_message":"Query was successful"}
And run it through a
Json to C# converter[
^] I get these classes:
public class MovieResult
{
public string title { get; set; }
public int year { get; set; }
public string imdb_id { get; set; }
}
public class Root
{
public List<MovieResult> movie_results { get; set; }
public int search_results { get; set; }
public string status { get; set; }
public string status_message { get; set; }
}
Which is nothing like your single class:
public class MovieNew
{
public string title { get; set; }
public int year { get; set; }
public string imdb_id { get; set; }
}
...
var result2 = JsonConvert.DeserializeObject<List<MovieNew>>(body);
If the Json doesn't match the classes, you will rightly get an error...