开发者

JSON Parsing Error?

开发者 https://www.devze.com 2023-02-02 13:14 出处:网络
I am using JSON (SBJson)开发者_高级运维 but it\'s givingthe error : JSONValue failed. Error trace is: (

I am using JSON (SBJson)开发者_高级运维 but it's giving the error :

JSONValue failed. Error trace is: (
    "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 \"Unrecognised leading character\" UserInfo=0x5f2f7f0 {NSLocalizedDescription=Unrecognised leading character}.

am using this web service : "http://xoap.weather.com/search/search?where=India" please give me the solutions why does error come?


That URL returns XML, not JSON. The "illegal character" is the first bracket in the XML, which isn't a valid character in JSON.


That response is XML (application/xml), not JSON (application/json).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号