[libxml-devel] Looking for ruby code to convert libxml:xml to json

2 views
Skip to first unread message

Victor

unread,
Dec 22, 2008, 1:55:03 PM12/22/08
to libxml...@rubyforge.org
Hi

Does anyone know if someone had put out code to convert xml to json in
ruby?

Thanks in advance,

Victor
_______________________________________________
libxml-devel mailing list
libxml...@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Mark Thomas

unread,
Dec 30, 2008, 12:34:01 PM12/30/08
to libxml...@rubyforge.org
If it's not too complicated, you can probably do

XML --> hash --> JSON

Using XmlSimple and json-ruby or ActiveSupport::JSON

-- Mark.

Reply all
Reply to author
Forward
0 new messages