---
url: /reference/@cssdoc/core/functions/toJson.md
---
# Function: toJson()

```ts
function toJson(model): string;
```

Defined in: [packages/core/src/lite.ts:76](https://github.com/thedannywahl/cssdoc/blob/main/packages/core/src/lite.ts#L76)

Serialize a documentation model to pretty JSON (the raw, emitter-agnostic artifact — like TypeDoc's
`--json`).

## Parameters

### model

[`CssDocEntry`](../interfaces/CssDocEntry.md)\[]

The entries from `parseCssDocs`.

## Returns

`string`

A JSON string.
