saveJSON(to:includeReportMetadata:includeTranscripts:)
Saves evaluation results to a single JSON file.
Declaration
@discardableResult func saveJSON(to directory: URL, includeReportMetadata: Bool = false, includeTranscripts: Bool = false) throws -> URLParameters
- directory:
The directory to save the file in.
- includeReportMetadata:
Whether to include report metadata. Defaults to
false. - includeTranscripts:
Whether to encode each row’s transcript into the
Transcriptcolumn as JSON. Defaults tofalse. Enable when you want a saved file that carries transcripts.
Return Value
The URL of the saved file
Discussion
The file contains sections for summary, results, metadata, and optionally report metadata.