0

I'm trying to serialize data for sharing between Ruby and Objective-C. I would like to use something lightweight like YAML or JSON, but I would be curious to hear what would be the easiest implementation.

Thanks.

3 Answers 3

1

If you choose to go with JSON, there's the json-framework for Objective-C which seems to be pretty mature and is used by well known applications such as Adium and Twitterfon.

Here is a neat and simple article which shows how to use it.

I also recommend ASIHTTPRequest for the server communication you will be doing. Makes things a lot neater and easier.

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

Comments

1

If suitable, A Ruby/Objective-C bridge, such as RubyObjC or RubyCocoa, will obviate the need to serialize data.

Comments

0

I wrote a ruby extension for this very purpose, which allows ruby to read/write property lists. This requires no extra libraries on the obj-c side, and you can install the ruby library via rubygems.

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.