code: def __iterate_value(self, value):
          
          if hasattr(value, '__dict__') or isinstance(value, dict):
              return self.__find_object_children(value)  # go through dict/class
          elif isinstance(value, (list, tuple, set)):
              return self.__construct_list(value)  # go through list
          return self.safe_values(value)
docs: Return value for JSON serialization