---
title: "saveJSONLines(to:includeReportMetadata:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/collection/savejsonlines(to:includereportmetadata:)"
---

# saveJSONLines(to:includeReportMetadata:)

Saves the array of evaluation results as a JSONL file

## Declaration

```swift
@discardableResult func saveJSONLines(to url: URL, includeReportMetadata: Bool = false) throws -> URL
```

## Parameters

- `url`: The file URL to write the JSONL output to.
- `includeReportMetadata`: Whether to include report metadata in each entry. Defaults to false.

## Return Value

Return Value The URL of the saved file.
