0
私はJSONを学んでおり、次のステップを理解することはできません。私はJSON Readerを作成し、必要なデータを読者に追加しましたが、データを使って実際にPOST()リクエストを作成するにはどうすればいいですか?JSONでPOST()を作成
これは、この構文で問題が掲載されている唯一のものであることである私が持っているもの
private void PerformJSONPost()
{
var httpWebRequest = (HttpWebRequest)WebRequest.Create("http://requestb.in/12frf661");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
var jsonReader = JsonReaderWriterFactory.CreateJsonReader(Encoding.UTF8.GetBytes(@"{ ""Security"": { ""UsernameToken"": { ""Username"": ""redrobin"", ""Password"": ""fahidsma!"" } }"), new System.Xml.XmlDictionaryReaderQuotas());
}
EDIT
です:
System.Runtime.Serialization.Json.XmlJsonReader