public void OnGet() { using (var webClient = new WebClient()) { string peerApple = webClient.DownloadString("https://nutrientdiary20210416013720.azurewebsites.net/?query=Apple"); JArray jsonArray = JArray.Parse(peerApple); var nutrients = Nutrient.FromJson(peerApple); ViewData["peerpage"] = nutrients; } }