我有以下代码:
var json = new WebClient().DownloadString(string.Format(@"http://www.google.com/dictionary/json?callback=dict_api.callbacks.id100&q={0}&sl=en&tl=en", "bar"));
这将返回如下内容:
dict_api.callbacks.id100({"query":"bar","sourceLanguage":"en","targetLanguage":"en","primaries":[{"type":"headword","terms":[ {"type":"text","text":"bar",....
为什么它返回一个函数而不仅仅是 json?我是否错误地使用了 Web 客户端?