Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

json get request c#

using Newtonsoft.Json.Linq;

HttpClient client = new HttpClient();
var res = await client.GetStringAsync($"https://www.codegrepper.com/api/get_answers_1.php?v=3&s=loop");
var Answer = JObject.Parse(res)["answers"][0]["answer"].ToString();
Console.Write(Answer);
 
PREVIOUS NEXT
Tagged: #json #request
ADD COMMENT
Topic
Name
6+1 =