2012-12-18 86 views

回答

9

我已经找到了答案我自己。

我将价值传递到请求url script-in-json。 simplay改变它为json

+1

拉纳的自我回答也是我的解决方案 - 我使用的是'json脚本'而不是简单'json'。我需要知道还有哪些其他格式/选项可用。感谢Rana的回答,我知道用Google查询什么是正确的。 https://developers.google.com/feed/v1/devguide#load_the_javascript_api_and_ajax_search_module – 2013-03-24 14:53:32

+1

非常感谢。我使用了API文档中的建议url参数,并且我试图用jQuery解析JSON。这工作。谢谢拉娜 – Vincent

1
$json = gdata.io.handleScriptLoaded({key:value}); 
    $res = json_decode($json); 
    print $res->{'key'}; // it prints your value 
+0

'试图获得非对象的财产' –