---
title: "ContentType | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms/Ajax.Namespace.ContentType/"
---

# ContentType

> ***

## Variables

### json

```ts
const json: object;
```

#### Type Declaration

##### name

```ts
name: string = 'Content-Type';
```

##### value

```ts
value: string = 'application/json;charset=UTF-8';
```

### text

```ts
const text: object;
```

#### Type Declaration

##### name

```ts
name: string = 'Content-Type';
```

##### value

```ts
value: string = 'text/plain';
```

## Functions

### isJsonContentType()

```ts
function isJsonContentType(contentType): boolean;
```

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `contentType` | `string` |

#### Returns

`boolean`
