code: public void parseResponse(String results) {
  
          cancelUpdateProgress();
          stopLoadingAnimation();
  
          if ((!m_canceled) && CmsStringUtil.isNotEmptyOrWhitespaceOnly(results)) {
              JSONObject jsonObject = JSONParser.parseStrict(results).isObject();
              boolean success = jsonObject.get(I_CmsUploadConstants.KEY_SUCCESS).isBoolean().booleanValue();
              // If the upload is done so fast that we did not receive any progress information, then
              // the content length is unknown. For that reason take the request size to show how
              // much bytes were uploaded.
              double size = jsonObject.get(I_CmsUploadConstants.KEY_REQUEST_SIZE).isNumber().doubleValue();
              long requestSize = new Double(size).longValue();
              if (m_contentLength == 0) {
                  m_contentLength = requestSize;
              }
              if (success) {
                  m_mainPanel.displayDialogInfo(Messages.get().key(Messages.GUI_UPLOAD_INFO_FINISHING_0), false);
                  m_progressInfo.finish();
                  closeOnSuccess();
              } else {
                  String message = jsonObject.get(I_CmsUploadConstants.KEY_MESSAGE).isString().stringValue();
                  String stacktrace = jsonObject.get(I_CmsUploadConstants.KEY_STACKTRACE).isString().stringValue();
                  showErrorReport(message, stacktrace);
              }
          }
      }
docs: Parses the upload response of the server and decides what to do.<p>
  
  @param results a JSON Object