LibXML::XML to json in ruby


#1

Hi

Does anyone aware of any ruby code, gem or plugin available to convert
LibXML::XML object to json?

Thanks in advance,

Victor


#2

On Dec 22, 7:59 pm, Victor removed_email_address@domain.invalid wrote:

Hi

Does anyone aware of any ruby code, gem or plugin available to convert
LibXML::XML object to json?

Thanks in advance,

Victor

Perhaps you can use xml.to_s and then to_json or
Hash.create_from_xml and then to_json