lisc.io.io.save_jsonlines

lisc.io.io.save_jsonlines(data, file_name, directory=None, header=None)[source]

Save out data to a JSONlines file.

Parameters
datalist of dict or iterable

Data to save out to a JSONlines file.

file_namestr

File name to give the saved out json file.

directorystr or Path, optional

Folder to save out to.

headerdict, optional

Data to save out as the header line of the file.