Ferdous ara wrote in post #1077222:
> Hi
> I am trying to read about json output , buts its getting little bit of
> hard
>
> url = "http://xxxxxxx:111/v1=rebuild"
> resp = Net::HTTP.get_response(URI.parse(url))
> data = resp.body
> puts data      =:::::::::::
> {"BD51-5":276611,"TOTAL":1459071,"BD51-10":1182460}
> result = JSON.parse(data)
> puts result =:::::::::::::: BD51-101182460TOTAL1459071BD51-5276611

puts result.inspect

will make it a lot clearer. You have a Hash there, but Hash#to_s in ruby 
1.8.x just concatenates the keys and values which makes it hard to read.

-- 
Posted via http://www.ruby-forum.com/.