# JsonErrorKind

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

JSON error category.

```ds title="JsonErrorKind"
export enum JsonErrorKind {
    Syntax,
    Depth,
    Number,
    Unsupported,
    Encode,
    Decode,
}
```

[language/library/src/json/error.ds:5:18](https://github.com/destack-sh/destack/blob/main/language/library/src/json/error.ds#L5-L18)

## Variants

### `Syntax`

The input is not valid JSON.

### `Depth`

The input exceeds the configured nesting depth.

### `Number`

A number cannot be represented.

### `Unsupported`

The value is unsupported by JSON.

### `Encode`

Encoding failed.

### `Decode`

Decoding failed.
