Ok, so you want to host a static JSON file on a web server so that the iOS application opens and parses it. There are a few steps and a little learning curve, but from what I'm reading, this may help you.
Step 1: Make sure your JSON is valid, as there seems to be some confusion. Open JSON in a text editor, such as notepad. Copy it and paste it into the text area on this site:
http://jsonlint.com/
If you get a parsing error, find the line and edit. If you cannot do this or JSON is valid, stop and resolve this problem.
Step 2: Although you can use dropbox for this, it is not a good idea for a real application. Get a web host. Depending on your basic skill level, you can use a cloud provider such as Amazon, Heroku, etc. Based on this question, I would recommend a basic ftp site. There is a ton of free / cheap web hosts.
https://www.google.com/search?q=cheap+web+hosting
The only thing you want to watch for the โfree planโ is that they donโt add ads to your pages. (I'm looking at you, GoDaddy.)
Step 3: (assuming you have the iOS application installed)
Add AFNetworking to your project and customize AFJSONOperation.
http://afnetworking.com/
And use the following code:
NSURL *url = [NSURL URLWithString:@"http://www.foo.com/bar.json"]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; AFJSONRequestOperation *operation = [AFJSONRequestOperation JSONRequestOperationWithRequest:request success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON){ NSLog(@"JSON: %@", JSON); }failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id JSON) { NSLog(@"error: %@ response: %@", error, response); }]; [operation start];
Edit: Remove the link to the Dropbox article. Added cheap web hosting options.