I created a Web API and it needs to read the response in header with json content, therefore I use code below:
HttpRequestMessage re = Request;
var payLoadJson = re.Content;
string jsonContent = payLoadJson.ReadAsStringAsync().Result;
var test = JObject.Parse(jsonContent);
And here is the response of var test
{{
"pushToken": "AAABBBCCC"
}}
Can any body tell me how to get the value of pushToken?
JObject.Parse(jsonContent)['pushToken'] always get null because of double braces.