LibXML::XML to json in ruby

Discussion in 'Ruby' started by Victor, Dec 22, 2008.

  1. Victor

    Victor Guest

    Hi

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

    Thanks in advance,

    Victor
     
    Victor, Dec 22, 2008
    #1
    1. Advertising

  2. Victor

    Dejan Dimic Guest

    On Dec 22, 7:59 pm, Victor <> 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
     
    Dejan Dimic, Dec 22, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ian Gregory
    Replies:
    1
    Views:
    518
  2. Olav
    Replies:
    3
    Views:
    4,303
  3. Florian Frank
    Replies:
    0
    Views:
    253
    Florian Frank
    Jun 30, 2009
  4. sajuptpm
    Replies:
    2
    Views:
    360
    sajuptpm
    Dec 28, 2012
  5. Acácio Centeno
    Replies:
    1
    Views:
    284
    dieter
    Feb 15, 2013
Loading...

Share This Page