clear
{% json products %}
[
{ "id": 1, "title": "Product 1" },
{ "id": 2, "title": "Product 2" },
{ "id": 3, "title": "Product 3" }
]
{% endjson %}
{% assign product_titles = products | map: "title" %}
{% comment %} Process the data... {% endcomment %}
{% log product_titles %}
{% comment %} Clear variables when no longer needed {% endcomment %}
{% clear products, product_titles %}
{% comment %} Variables are now removed from memory {% endcomment %}
{% log products %}Syntax
Parameter
Description
Use Cases
Notes
Last updated