2

Am developing a cocoa application, where I have to invoke java web scripts and fetch the response of the web script object and convert it into Objective C readable objects. I would then need to manipulate the fetched data for import, print, etc.

How to I interact with the web script and convert into cocoa readable objects?

Any pointers on the same, will be appreciated.

Thanks, Nana

1

2 Answers 2

3
  1. Convert the JSON string into an NSDictionary using tools like yajl, JSONKit or iOS5 JSON

  2. Use https://github.com/elado/jastor to convert this NSDictionary to a real Objective-C class with typed properties, nested properties, arrays etc.

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

Comments

1

In iOS 5 native JSON parsing is supported (documentation). In addition you can use a number of third party libraries to download and parse JSON (see JSONKit and HTTPRiot or RestKit)

A full reference of awesome libraries can be found here.

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.