Access JSON lumps in metafields with Shopify Liquid templates
<p>I was wondering if anyone knew if I can access JSON in Liquid such as the example below.</p>

<p>I have created a metafield for the suppliers page with the namespace <code>suppliers_details</code>, with the key <code>suppliers</code> and the value:</p>

<pre><code>{
  name: "Supplier Name One",
  address: "Supplier Address One"
},
{
  name: "Supplier Name Two",
  address: "Supplier Address Two"
}
</code></pre>

<p>In the template I have:</p>

<pre><code>{% assign suppliers = page.metafields.suppliers.suppliers %}
{% for supplier in suppliers %}
  &lt;p&gt;{{ supplier.name }}&lt;/p&gt;
  &lt;p&gt;{{ supplier.address }}&lt;/p&gt;
{% endfor %}
</code></pre>

<p>This doesn't work as I can't change the data into a format the the template can use to iterate through, is there a way to do this?</p>

<p>Cheers</p>