JSON, MessagePack, and Google's Protocol Buffers are all awesome. Here's how they're awesome on different client environments and how to use them on your rails env.
Some links:
- JSON: http://json.org/
 - MsgPack: http://msgpack.org/
 - ProtoBufs: https://code.google.com/p/protobuf/
 
Output from Ruby Client: