---
url: /reference/@cssdoc/json/functions/writeJson.md
---
# Function: writeJson()

```ts
function writeJson(options): WriteJsonResult;
```

Defined in: [emitters/json/src/index.ts:73](https://github.com/thedannywahl/cssdoc/blob/main/emitters/json/src/index.ts#L73)

Write the model to `outDir/model.json` (and optionally per-record files, an index, and the schema).

## Parameters

### options

[`WriteJsonOptions`](../interfaces/WriteJsonOptions.md)

## Returns

[`WriteJsonResult`](../interfaces/WriteJsonResult.md)
