1

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?

2 Answers 2

5

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

Sign up to request clarification or add additional context in comments.

Comments

3

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.