Need help with JSON by using Metafields

Highlighted
Excursionist
17 2 2

I want to add JSON from Metafields Guru to liquid with an array

 

 

{
    "materials": {
        "material_1": "Plywood",
        "material_2": "Teawood",
        "material_3": "MDF",
"material_3": "PP" }, "age": { "age": "From 18 months up" } }

 

I want to result be like this

6D74CEF4-7797-47de-A65E-2EB170315FD3.png

 

Please I need help~

 

0 Likes
Highlighted
Excursionist
17 2 2

Store Link

currently, I make work but with separated Metafields that makes a lot of mass,

 

69E4E181-CFB2-47b3-9317-0CC44D683CEB.png

{% for key_value in product.metafields.materials.description_info  %}
<li>{{ key_value[1] }}</li>
{% endfor %}

 

I don't know how to call JSON when I use many objects

 

4F6ADB81-3182-40c4-ACA6-5DCA7F5E8523.png

 

I am not good with JSON or Liquid, please someone teach me how to do it

 

 

0 Likes