Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Convert output to JSON
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Joyce Babu  
View profile  
 More options Jun 16 2011, 2:24 am
From: Joyce Babu <jo...@joycebabu.com>
Date: Wed, 15 Jun 2011 23:24:16 -0700 (PDT)
Local: Thurs, Jun 16 2011 2:24 am
Subject: Convert output to JSON
Hello,

I am new to Ruby programming. Is it possible to convert the
Whois::Record object to JSON format?

I tried

      c = Whois::Client.new
      r = c.query(n)
      content_type :json
      "#{r.to_json}"

But it didn't work.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.