【发布时间】:2014-09-02 20:02:16
【问题描述】:
我从Bitly api 得到这个响应字符串:
{ "status_code": 200,
"status_txt": "OK",
"data":
{ "long_url": "http:\/\/amazon.de\/",
"url": "http:\/\/amzn.to\/1mP2o58",
"hash": "1mP2o58",
"global_hash": "OjQAE",
"new_hash": 0
}
}
如何将此字符串转换为字典以及如何访问键 "url" 的值(没有所有 \)
【问题讨论】:
-
使用 Newtonsoft JSON 库。
标签: c# string dictionary system.net