class_docstr: Deeply navigates a dict publication and coverts all scalar arrays to strings
  
  Any array discovered with only scalar values will be joined into a single string with the
  given DELIMITER. Subclass implementations of this can override the delimiter to join the
  string differently.
class_docstr_tok: ["Deeply","navigates","a","dict","publication","and","coverts","all","scalar","arrays","to","strings","Any","array","discovered","with","only","scalar","values","will","be","joined","into","a","single","string","with","the","given","DELIMITER",".","Subclass","implementations","of","this","can","override","the","delimiter","to","join","the","string","differently","."]
code: def publish(self, alert, publication):
      fringe = deque()
      fringe.append(publication)
      while len(fringe) > 0:
          next_item = fringe.popleft()
  
          if isinstance(next_item, dict):
              # Check all keys
              for key, item in next_item.items():
                  if self.is_scalar_array(item):
                      next_item[key] = self.stringify(item)
                  else:
                      fringe.append(item)
  
          elif isinstance(next_item, list):
              # At this point, if the item is a list we assert that it is not a SCALAR array;
              # because it is too late to stringify it, since we do not have a back reference
              # to the object that contains it
              fringe.extend(next_item)
          else:
              # It's a leaf node, or it's some strange object that doesn't belong here
              pass
  
      return publication
  
file_path: streamalert/publishers/community/generic.py
imports: from collections import deque, OrderedDict
  import re
  from streamalert.shared.publisher import Register, AlertPublisher
  from streamalert.shared.normalize import Normalizer
  from streamalert.shared.utils import get_keys
label_desc: Use image node_id 1 for calling the StringifyArrays obj's underlying member method code with example usage: obj.publish(alert, publication) and returns: publication