尝试使用 gson 解析来自 instagram 的以下简单 json 响应,但我返回“com.google.gson.stream.MalformedJsonException: Unterminated object at line 1 column 21”:
{provider_url: http://instagram.com/, media_id: \"312873405259835666_223937937\", title: \"#summer\", url: http://distilleryimage2.instagram.com/d4e0e83021cc11e2b74c22000a9f1427_7.jpg, author_name: \"kajsataskinen\", height: 612,width: 612,version: \"1.0\",author_url: http://instagram.com/, author_id: 223937937,type: \"photo\",provider_name: \"Instagram\"}
如果我用双引号将 http 链接括起来,它就可以正常工作。有任何想法吗?
您可以在此处获得 instagram json 响应:http://instagram.com/api/v1/oembed/?url=http: //instagr.am/p/RXjLRULekS/
谢谢