def parse_json(response)
      return nil if response.body.empty?
      
      JSON.parse(response.body)
    rescue => ex
      raise Kontena::Errors::StandardError.new(520, "Invalid response JSON from server for #{response.path}: #{ex.class.name}: #{ex.message}")
    end
def parse_json(response)
      return nil if response.body.empty?
      
      JSON.parse(response.body)
    rescue => ex
      raise Kontena::Errors::StandardError.new(520, "Invalid response JSON from server for #{response.path}: #{ex.class.name}: #{ex.message}")
    end
Parse json

 @param response [Excon::Response]
 @return [Hash,Object,NilClass]