6
我有以下的JSON文件中的timezones.json:解析JSON字符串來查找和元素(鍵/值)
{ "Atlantic/Canary": "GMT Standard Time", "Europe/Lisbon": "GMT Standard Time",
"Antarctica/Mawson": "West Asia Standard Time", "Etc/GMT+3": "SA Eastern Standard Time",
"Etc/GMT+2": "UTC-02", "Etc/GMT+1": "Cape Verde Standard Time", "Etc/GMT+7": "US Mountain
Standard Time", "Etc/GMT+6": "Central America Standard Time", "Etc/GMT+5": "SA Pacific
Standard Time", "Etc/GMT+4": "SA Western Standard Time", "Pacific/Wallis": "UTC+12",
"Europe/Skopje": "Central European Standard Time", "America/Coral_Harbour": "SA Pacific
Standard Time", "Asia/Dhaka": "Bangladesh Standard Time", "America/St_Lucia": "SA Western
Standard Time", "Asia/Kashgar": "China Standard Time", "America/Phoenix": "US Mountain
Standard Time", "Asia/Kuwait": "Arab Standard Time" }
我要搜索一個特定的鍵如「大西洋/金絲雀」,因此希望它的價值迴歸,即「GMT標準時間」。
我該如何使用Json.Net或C#中的其他有效手段來做到這一點?
謝謝,它的作品像一個魅力:) – theGeekster