Search
 
SCRIPT & CODE EXAMPLE
 

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);
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# winforms textbox cursor position 
Csharp :: tests not showing in test explorer 
Csharp :: how to encode and decode a string in c# 
Csharp :: C# convert iformfile to stream 
Csharp :: string in int c# 
Csharp :: get waht is differnt between two arrays c# 
Csharp :: c# read text file separated by comma 
Csharp :: c# run file 
Csharp :: c# how do you check if a string contains only digits 
Csharp :: unity how to get the first word from string 
Csharp :: get date value from datepicker c# 
Csharp :: mathf.clamp unity 
Csharp :: asp.net core identity get user id 
Csharp :: how to get key value from json object in c# 
Csharp :: how to print a matrix in c# 
Csharp :: WebClient c# with custom user agent 
Csharp :: c# object to dictionary 
Csharp :: how to chagne rotation in unity 
Csharp :: unity ignore collision between two objects 
Csharp :: Razor foreach loop 
Csharp :: unity c# 
Csharp :: c# listbox delete selected items 
Csharp :: how unsort the data table options 
Csharp :: c# string array contains 
Csharp :: how to create a singleton in unity 
Csharp :: how to get the hour on c# 
Csharp :: where did mark twain go to school 
Csharp :: change button color in script unity 
Csharp :: Play Sound c# 
Csharp :: c# use hashtable check if key exists 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =