What do you want to save?
Add Code snippet
New code examples
-
C# 2022-03-16 11:15:47
.net httpclient add body
public async string Example() { //The data that needs to be sent. Any object works. var pocoObject = new { Name = "John Doe", Occupation = "gardener" }; //Converting the object to a json string. NOTE: Make sure the ob... Add solution -
C# 2022-01-23 06:15:24
parse json C#
Product product = new Product(); product.Name = "Apple"; product.Expiry = new DateTime(2008, 12, 28); product.Price = 3.99M; product.Sizes = new string[] { "Small", "Medium", "Large" }; string json = JsonConvert.Se... Add solution -
Javascript 2021-11-07 11:29:12
convert json in parse inputs azure function
#r "Newtonsoft.Json" using System.Net; using Newtonsoft.Json; public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log) { dynamic body = await req.Content.ReadAsStringAsync(); var e = JsonConvert.... Add solution -
Other 2021-11-05 08:39:10
DeleteAsync
HttpResponseMessage response = _client.PostAsync("/post", new StringContent(JsonConvert.SerializeObject(obj), Encoding.UTF8, "application/json")).Result; string res = await response.Content.ReadAsStringAsync(); return await JsonConvert... Add solution -
C# 2021-11-04 17:54:10
webclient c# example post
//Base code from: http://zetcode.com/csharp/httpclient/ public async string Example() { //The data that needs to be sent. Any object works. var pocoObject = new { Name = "John Doe", Occupation = "gardener" }; //Conver... Add solution