Я работаю над выбором токена из JSON. Пример кода приведен ниже.
string json = @"
{
""client_id"": ""26075235"",
""client_version"": ""1.0.0"",
""event"": ""app.uninstall"",
""timestamp"": 1478741247,
""https://something.com/something/url"": {
""id"": ""62581379"",
""site_id"": ""837771289247593785"",
""platform_app_id"": ""26075235""
},
""nonURLuser"": {
""id"": ""62581379"",
""site_id"": ""837771289247593785"",
""platform_app_id"": ""26075235""
}
}";
JObject jo = JObject.Parse(json);
Console.WriteLine("nonURLuser User ID: " + jo.SelectToken("nonURLuser.id"));
Console.WriteLine("Dot based URL User ID: " + jo.SelectToken("https://something.com/something/url.id"));
Но второй отпечаток дает пустой вывод. Как я могу выбрать этот токен?
URL скрипты: - https://dotnetfiddle.net/RzFyOg