liquid icon indicating copy to clipboard operation
liquid copied to clipboard

Why doesn't parse_json take effect?

Open hogan96 opened this issue 1 year ago • 1 comments

{%- assign tech_details = product.metafields.custom.product_technical_details | parse_json -%}

image

hogan96 avatar Jan 13 '24 12:01 hogan96

Because sadly parse_json is not a filter in Shopify Liquid. Which is odd given that list and json metafields both return a json string, so this would be a very useful addition.

tekhaus avatar Feb 08 '24 22:02 tekhaus