My url is http://sample_domain/sample.json?{ "language" : "en", "category" : "sports"}
I am converting this to NSURL object like below.
NSURL *url=[NSURL URLWithString:@"http://sample_domain/sample.json?{ "language" : "en", "category" : "sports"}"];
its returning nil to NSURL object, i know the URL should be in specific format from apple documentation,otherwise it will be considered as a malware site and returns nil object,
my question is how can i pass these paremeters with apple standards, so that it will not retun nil object.
Thanks in advance.
http://sample_domain/sample.json?language=en&category=sportsAs you can see, it's still the same information but now it's working much more with the way the normal web works instead of insisting on doing it differently. - Donal Fellows