Wrapped的返回值取值
作者:互联网
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,采用键值对的方式取出结果
标签:Newtonsoft,JObject,jObject,Json,result,Wrapped,返回值,取值 来源: https://blog.51cto.com/u_15180952/2733086