How to Run JSON AJAX on an iPhone
You can create your own iPhone applications that fetch information from websites using AJAX JSON-over-HTTP, which is effective but not natively supported on the Apple iPhone. Enable JSON support by adding the JSON framework to the iPhone SDK that you use to create your iPhone apps. Once added, the application that you build with the SDK will enable JSON support on the iPhone by default.
Instructions
-
-
1
Download the JSON Framework DMG image file (see link in Resources).
-
2
Create two new folders within your SDK. First, create a "Library" folder, and then create an "SDK" folder within the Library folder.
-
-
3
Copy and paste the JSON framework DMG file into the SDK folder you created in the preceding step.
-
4
Launch Xcode and click "Project." Select "Edit Project."
-
5
Select "Additional SDK."
-
6
Click the "Plus" button and paste the following code into the text field that appears:
Home/Library/SDK/JSON/$IPHONE.sdk
-
7
Close Xcode. IPhone applications you now create with this SDK that include a call to JSON-over-HTTP will automatically incorporate the JSON framework engine and enable the support on your iPhone.
-
1