code: def _drop_empty_props(self, item):
          
          if isinstance(item, list):
              return [self._drop_empty_props(i) for i in item]
          if isinstance(item, dict):
              return {
                  k: self._drop_empty_props(v)
                  for k, v in item.items() if v != ''
              }
          return item
docs: Remove properties with empty strings from nested dicts.