I got this error when I tried to run the good which gives and object reference not to an instance of an object
this is the code
- string responseString = reader.ReadToEnd();
- dynamic jsonData = JsonConvert.DeserializeObject(responseString);
- var results = new List
(); - foreach (var item in jsonData.items)
- {
- results.Add(new Result
- {
- Title = item.title,
- Link = item.link,
- Snippet = item.snippet,
- });
- }
please kindly help

Guest UserRank #816 · 2.8K reputationPosted Oct 17, 2019, 2:49 AM EDT
Guest UserRank #816 · 2.8K reputationPosted Oct 16, 2019, 2:47 AM EDT
Guest UserRank #816 · 2.8K reputationPosted Oct 16, 2019, 4:11 AM EDT
Joma Alrzini26 reputationPosted Oct 16, 2019, 2:53 AM EDT
Joma Alrzini26 reputationPosted Oct 16, 2019, 4:17 AM EDT