I’m writing a lightweight AJAX application using Rails on the server side as a RESTful web service provider.
I need the web service to support both JSON and XML I/O. Outputting data in XML and JSON is easy (using to_xml and to_json),
and it’s also easy to do XML input as Rails does it for you automatically. Is it possible to somehow have the same
automatic parsing with JSON?