---
title: "Liquid filters: structured_data"
description: Converts an object into a schema.org structured data format.
api_name: liquid
source_url:
html: https://shopify.dev/docs/api/liquid/filters/structured_data
md: https://shopify.dev/docs/api/liquid/filters/structured_data.md
---
# structured\_​data
```oobleck
variable | structured_data
```
returns [string](https://shopify.dev/docs/api/liquid/basics#string)
Converts an object into a schema.org structured data format.
The `structured_data` filter can be used on the [`product`](https://shopify.dev/docs/api/liquid/objects/product) and [`article`](https://shopify.dev/docs/api/liquid/objects/article) objects.
Product objects are output as a [schema.org `Product`](https://schema.org/Product) if they have no variants, and a [`ProductGroup`](https://schema.org/ProductGroup) if they have one or more variants.
Article objects are output as a [schema.org `Article`.](https://schema.org/Article)
```liquid
```
##### Code
```
```
## Output
```html
```