zero.io.dump_jsonl

zero.io.dump_jsonl(records, path, **kwargs)[source]

Dump an object to a file in JSONL format.

Parameters
  • records (Iterable[JSON]) – the JSON-compatible records

  • path (PathLike) – path to the file. If the file doesn’t exist, it will be created, otherwise, overwritten.

  • kwargs – arguments for json.dump

Return type

None