[**@wocart/storefront v3.1.0**](../../README)

***

[@wocart/storefront](../../README) / [index](../README) / jsonLd

# Function: jsonLd()

> **jsonLd**(`value`): `string`

Structured data as the text of a `<script type="application/ld+json">`:
JSON with `<`, `>`, `&` and the two line separators escaped, so no value — a
product name holding `</script>` — can end the script or start markup.

```astro
<script type="application/ld+json" set:html={jsonLd(productStructuredData(product, { url }))} />
```

## Parameters

### value

`unknown`

## Returns

`string`
