json

Nov 04 2011

Getting Started with JSON in iOS5

JSON has taken the data-interchange world by storm with its' lightweight, easy to understand format. The explosion of mobile apps, and their consumption of network based data, helped fuel JSON's growth. CapTech's recommended approach for web services utilizes JSON as the interchange format.

While JSON has been around for several years - RFC4627 was published in July of 2006 - working with JSON in an iOS project required that you download one of the many frameworks and integrate it into your project. My personal choice has been SBJSON - https://github.com/stig/json-framework.

Read More

Tagged: iOS, ios5, iPhone SDK, json, mobile

Feb 23 2009

Posting JSON with Commons HTTPClient and XStream

I recently had an occasion where I had to perform an HTTP POST with JSON data from a Java service class as oppose to Javascript. No amount of Google searches turned up the answer I was after. Here are the steps I took to do so:

STEP 1 - Handle HTTP Post
The project I am working we were already using Commons HTTPClient which has a PostMethod class that peforms an HTTP Post. Here is the code to setup the post:

HttpClient clientService = new HttpClient();
PostMethod post = new PostMethod();

Read More

 

Disclaimer

The words and opinions expressed here are those of each article's respective author, and do not necessarily represent the views of CapTech Ventures.