def _stringify(iterable, joinable='\n'):
        """
        Takes an iterable (pymongo Cursor or Array) containing dictionaries and
        returns a stringified version using python join
        """
        return joinable.join(
            [json.dumps(doc, default=json_util.default) for doc in iterable]
        )
def _stringify ( iterable , joinable = '\n' ) : return joinable . join ( [ json . dumps ( doc , default = json_util . default ) for doc in iterable ] )
Takes an iterable (pymongo Cursor or Array) containing dictionaries and
        returns a stringified version using python join