docs: def dict_output(self, check_name, groups, source_name, limit):
          '''
          Builds the results into a JSON structure and writes it to the file buffer.
  
          @param check_name      The test which was run
          @param groups          List of results from compliance checker
          @param output_filename Path to file to save output
          @param source_name     Source of the dataset, used for title
          @param limit           Integer value for limiting output
          '''
          aggregates = self.build_structure(check_name, groups, source_name, limit)
          return self.serialize(aggregates)