我有一个JSON数据
"7862707859": {
"img": "https:\/\/steamcommunity-a.akamaihd.net\/economy\/image\/-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgposbupIgthwczAaAJB_sm7hIyOqPXmMq3eqWZU7Mxkh9bN9J7yjRrl-UVrMWmiLI6ccgJrMgnT-AK7k7ro08S86cvLyiBgsiYn4XzanxCxn1gSObBepbJw",
"itemID": "430",
"type": "Rifle",
"exterior": "Field-Tested",
"market_name": "StatTrak\u2122 Galil AR | Shattered (Field-Tested)",
"price": "1.64",
"avg": "1.388333",
"wearvalue": "0.2823500335",
"inspectLink": "steam:\/\/rungame\/730\/76561202255233023\/+csgo_econ_action_preview S76561198137155999A7862707859D7506986979364888325"
}
名称7862707859
总是随机的,所以我不知道。我试图循环并获得价值" Type"来自每个孩子。这是代码
foreach (var data in tokenJson["inventory"].Children())
{
Console.WriteLine(data["market_name"].Value<string>());
}