LibXML::XML to json in ruby

Hi

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

Thanks in advance,

Victor

On Dec 22, 7:59 pm, Victor [email protected] 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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs