我有一个名为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" }
我想从中搜索特定的键,例如“Atlantic/Canary”,并返回其对应的值,即“GMT Standard Time”。
如何使用Json.Net或其他有效的方式在C#中实现这一点?