我需要在 C# 中捕获/反序列化,仅使用内置的 .NET 库,从 JavaScript 文件接收的 JSON 格式的 POST 数据。
JSON 格式为:
{"URLs":[{"url_name":"Google", "url_address":"http://www.google.com/"}, {"url_name":"Yahoo", "url_address":"http://www.yahoo.com/"},{"url_name":"FB", "url_address":"http://www.fb.com/"},{"url_name":"MegaSearches", "url_address":"http://www.megasearches.com/"}]}
JavaScript 文件在http://www.mysite.com/json.aspx中发布 JSON 数据,我需要在 C# 中的 .aspx 代码隐藏中捕获 JSON 数据并保存到数据库。