Shopify themes, liquid, logos, and UX
I created a metafields his type is ‘json’ and the content is
[
{
"id": 664798,
"uid": 3,
"purchase_date": "2025-04-18T09:05:36+00:00",
"seller_account": "xxxxxx",
"amazon_order_id": "xxx-xxxxxxxx-xxxxxxxx",
"order_total": "108.79 GBP",
"a_sin": "xxxxxx",
"buyer_name": "",
"seller_id": "",
"buyer_email": "no email",
"shipping_address": "xxxxxx",
"create_time": "2025-04-19 16:24:56",
"update_time": "2025-04-19 16:24:56",
"product_name": "xxxxxxxx",
"product_img": null,
"is_done_order_info": 1,
"is_done_product_info": 0,
"remark": "{\"SellerSKU\":\"xxx\",\"OrderItemId\":\"xxx-xxxxxxxx-xxxxxxxx\"}",
"auth_id": 1,
"platform": "amazon",
"state": "保修中",
"end_date": "2026-10-18",
"days_remaining": 539
}
]
I tried to loop through the theme using the following code
Solved! Go to the solution
This is an accepted solution.
https://shopify.dev/docs/api/liquid/objects/metafield#metafield-accessing-metafields-of-type-json
you need to use .value:
{% assign warranty_list = customer.metafields.custom.shopify_warranty.value %}
{{ warranty_list.seller_account }}
json converts object to its textual representation, like stringify,
parse_json does not exist.
Hello @Joey_frizzlife
I’d be happy to help with this! To give you the most accurate feedback, could you kindly share your store URL? This will allow me to provide tailored suggestions for improvement.
This is an accepted solution.
https://shopify.dev/docs/api/liquid/objects/metafield#metafield-accessing-metafields-of-type-json
you need to use .value:
{% assign warranty_list = customer.metafields.custom.shopify_warranty.value %}
{{ warranty_list.seller_account }}
json converts object to its textual representation, like stringify,
parse_json does not exist.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025