# JsonReplacer

`import { JsonReplacer } from "destack:json";`

Function that transforms JSON values before serialization.

```ds title="JsonReplacer"
export type JsonReplacer = (string, Json) => Json | undefined
```

[language/library/src/json/json.ds:20](https://github.com/destack-sh/destack/blob/main/language/library/src/json/json.ds#L20)
