Bared
Wrapped
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,采用键值对的方式取出结果