c# post json data to api using webclient code example
Example: httpclient post c# json
var httpClient = new HttpClient();
var json = JsonConvert.SerializeObject(ticket);
var content = new StringContent(json, Encoding.UTF8, "application/json");
await httpClient.PostAsync("https://address.com", content);