Translate simple XML to JSON

I need the JSON equavalent of the following XML please

LVL 12
Who is Participating?

I used this ruby snipped:

require 'json'
require 'active_support/core_ext/hash'

xmlinput ='foo.xml')
puts Hash.from_xml(xmlinput).to_json
gbzhhuAuthor Commented:
Many thanks for the quick response.  There are many converters I didn't know.  Only now I googled and found :-)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.