> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/curator/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/curator/_mcp/server.

# nemo_curator.stages.text.io.writer.jsonl

## Module Contents

### Classes

| Name                                                                   | Description                                         |
| ---------------------------------------------------------------------- | --------------------------------------------------- |
| [`JsonlWriter`](#nemo_curator-stages-text-io-writer-jsonl-JsonlWriter) | Writer that writes a DocumentBatch to a JSONL file. |

### API

```python
class nemo_curator.stages.text.io.writer.jsonl.JsonlWriter(
    path: str,
    file_extension: str = 'jsonl',
    write_kwargs: dict[str, typing.Any] = dict(),
    fields: list[str] | None = None,
    name: str = 'jsonl_writer',
    mode: typing.Literal['ignore', 'overwrite', 'append', 'error'] = 'ignore',
    append_mode_implemented: bool = False
)
```

Dataclass

**Bases:** [BaseWriter](/nemo-curator/nemo_curator/stages/text/io/writer/base#nemo_curator-stages-text-io-writer-base-BaseWriter)

Writer that writes a DocumentBatch to a JSONL file.

**`file_extension`** `str = 'jsonl'`

---

**`name`** `str = 'jsonl_writer'`

---

**`write_kwargs`** `dict[str, Any] = field(default_factory=dict)`

---

```python
nemo_curator.stages.text.io.writer.jsonl.JsonlWriter.write_data(
    task: nemo_curator.tasks.DocumentBatch,
    file_path: str
) -> None
```

Write data to JSONL file using pandas DataFrame.to\_json.