title: Parse remote JSON with ruby
body: <p>i have a problem when try to get and parse a remote JSON.</p>
  
  <pre><code>require 'net/http'
  require 'json'
  
  url = "Www.example.com"
  resp = Net::HTTP.get_response(URI.parse(url))
  buffer = resp.body
  result = JSON.parse(buffer)
  
  details = result['Detail']
  
  details.each do |detail|
    puts "Latitude: #{detail['Latitude']}"
  end
  </code></pre>
  
  <p>The JSON returned it's like this.</p>
  
  <pre><code>{Detail:{ID:578155,Latitude:69.83}}
  </code></pre>
  
  <p>Any suggestion please ?</p>