def to_json(self, path, root_array=True, mode=CSV_WRITE_MODE):
        with builtins.open(path, mode=mode) as output:
            if root_array:
                json.dump(self.to_list(), output)
            else:
                json.dump(self.to_dict(), output)
Saves the sequence to a json file. If root_array is True, then the sequence will be written
dataset/ETHPy150Open EntilZha/PyFunctional/functional/pipeline.py/Sequence.to_json