---
url: /reference/@cssdoc/json/interfaces/ModelInput.md
---
# Interface: ModelInput

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

Either a CSS source or an already-parsed model.

## Extended by

* [`WriteJsonOptions`](WriteJsonOptions.md)

## Properties

### configuration?

```ts
optional configuration?: CssDocConfiguration;
```

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

The tag configuration to parse `css` with.

***

### css?

```ts
optional css?: string | string[];
```

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

CSS source (one string or several concatenated) to parse.

***

### dialect?

```ts
optional dialect?: CssDialect;
```

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

The stylesheet dialect of `css` (`scss`/`less` pick a dialect parser). Default `css`.

***

### entries?

```ts
optional entries?: CssDocEntry[];
```

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

An already-parsed model (takes precedence over `css`).

***

### lang?

```ts
optional lang?: "css" | "html" | "js" | "markdown";
```

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

The host language `css` is written in. Non-`css` values extract embedded CSS first. Default `css`.
