Is there any way to convert JSON to XML in Ruby?
i don't know a magic gem to do it, but what you can do easily is xml to hash and hash to json.
require 'active_support' my_hash = Hash.from_xml(my_xml)
then
require 'json' my_json = my_hash.to_json