views:

68

answers:

3

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.

+1  A: 

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.

Jorge Israel Peña
+1  A: 

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

outis
A: 

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.

Kevin Ballard