Topic: can Net:HTTP deal with json response?

Does anyone have a clue how I can use Net::HTTP to receive json response?
for example:
...
http = Net::HTTP.new(application_uri.host, application_uri.port)
request = Net::HTTP::Get.new(resource)
response = http.request(request)
abort(response.read_body)
...

will abort with 'null', when the response from the http request above is json( say from another controller in my app that does 'render :json => @some_model' -- say in the controller's show method)

Thanks for any help...

Re: can Net:HTTP deal with json response?

Controller:
$str = 'http://someurl.com'
      open(URI.encode($url)) {|f|
        f.each_line {|line| $str += line}
      }

View:
<%= $str %>