Are you an LLM? You can read better optimized documentation at /themes/tags/dump.md for this page in Markdown format
dump
Outputs a value as formatted JSON inside an HTML <pre> tag. Use it to see the fields of an object while you build a theme. The tag accepts filters.
liquid
{% dump value %}1
value: The variable or the expression to output.
Example:
Data
json
{
"product": {
"title": "Hat",
"price": 10,
"tags": ["summer", "sale"]
}
}1
2
3
4
5
6
7
2
3
4
5
6
7
liquid
{% dump product %}1
Output
html
<pre>{
"title": "Hat",
"price": 10,
"tags": [
"summer",
"sale"
]
}</pre>1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
The browser shows the JSON as text:
json
{
"title": "Hat",
"price": 10,
"tags": [
"summer",
"sale"
]
}1
2
3
4
5
6
7
8
2
3
4
5
6
7
8