class Geocoder::Lookup::Base

def parse_json(data)

def parse_json(data)
  if defined?(ActiveSupport::JSON)
    ActiveSupport::JSON.decode(data)
  else
    JSON.parse(data)
  end
rescue
  unless raise_error(ResponseParseError.new(data))
    Geocoder.log(:warn, "Geocoding API's response was not valid JSON")
    Geocoder.log(:debug, "Raw response: #{data}")
  end
end