我有一个字符串res = {"responseCode":"3001","response":"1533352091995"}
如何从json中仅选择3001
?使用asp.net
答案 0 :(得分:2)
请在下面找到答案:
string jsonData = @"{
'responseCode':'3001',
'response':'1533352091995'
}";
var details = JObject.Parse(jsonData);
Console.WriteLine(details["responseCode"]);
Console.ReadLine();