code: def get_json_log_data(data):
      
      log_data = data
      for param in LOG_HIDDEN_JSON_PARAMS:
          if param in data['params']:
              if log_data is data:
                  log_data = copy.deepcopy(data)
              log_data['params'][param] = "**********"
      return log_data
docs: Returns a new `data` dictionary with hidden params
      for log purpose.