using Newtonsoft.Json.Linq;
using System.Collections.Generic;
public static void Main()
WebRequest request = WebRequest.Create("http://httpbin.org/post");
request.ContentType = "application/json; charset=UTF-8";
JObject json = new JObject();
json.Add("Name", "Eric Reis Figueiredo");
string jsonString = JsonConvert.SerializeObject(json);
StreamWriter streamWriter = new StreamWriter(request.GetRequestStream());
streamWriter.Write(json);
WebResponse response = request.GetResponse();
StreamReader streamReader = new StreamReader(response.GetResponseStream());
string responseFromServer = streamReader.ReadToEnd();
Console.WriteLine(responseFromServer);