Bared
![](http://upload-images.jianshu.io/upload_images/9128511-89d258421df869a1.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/700)
![](http://upload-images.jianshu.io/upload_images/9128511-db32c8bea5d28685.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/700)
using Newtonsoft.Json;using Newtonsoft.Json.Linq;string str = JsonConvert.SerializeObject(student);StringContent content = new StringContent(str, Encoding.UTF8, "application/json");HttpClient client = new HttpClient();var result =await client.PostAsync(url + "PostModel", content);var r= result.Content.ReadAsStringAsync().Result;JObject jObject = JObject.Parse(r);string name = jObject["name"].ToString();
通过JObject,采用键值对的方式取出结果