Skip to content
1 min read · 80 words

Type Alias: JsonArtifactFormat

ts
type JsonArtifactFormat = "json" | "json5" | "jsonl" | "ndjson";

The set of JSON-derived formats that SpooledJsonArtifact can handle.

Remarks

  • json — a single JSON value spanning the entire artifact (strict RFC 8259).
  • json5 — a single JSON5 value spanning the entire artifact; permits comments, trailing commas, unquoted keys, and other relaxed syntax via the json5 package.
  • jsonl — newline-delimited JSON; each non-empty line is an independent JSON value.
  • ndjson — alias for jsonl; both names are accepted and behave identically.