---
url: >-
  https://adk.nht.io/api/@nhtio/adk/spooled_artifact/type-aliases/JsonArtifactFormat.md
description: 'The set of JSON-derived formats that [`SpooledJsonArtifact`](https://adk.nht.io/api/@nhtio/adk/spooled_artifact/classes/SpooledJsonArtifact) can handle.'
---

# Type Alias: JsonArtifactFormat

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

Defined in: [lib/classes/spooled\_json\_artifact.ts:22](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/classes/spooled_json_artifact.ts#L22)

The set of JSON-derived formats that [SpooledJsonArtifact](../classes/SpooledJsonArtifact.md) 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.
