# JsonLdScript Reference

The `JsonLdScript` component renders any JSON-LD structured data in a script tag.

## Props

The `JsonLdScript` component accepts the following props:

### `jsonLd` (required)

**type:** `T` (generic object type, defaults to `Record<string, unknown>`)

**Added in:** `seo-in-nextjs@1.0.0`

The JSON-LD structured data object to be rendered. This should be a valid JSON-LD object following the schema.org specification.

### `scriptId`

**type:** `string`

**Added in:** `seo-in-nextjs@1.0.0`

A custom ID for the script tag.

### `scriptKey`

**type:** `string`

**Added in:** `seo-in-nextjs@1.0.0`

A custom React key for the script element.