This {{ product.metafields.package.included_fonts }} is a JSON string array of objects. But cant loop through it and take out an object from it just like how find method works in javascript. It always returns some empty string.
Topic summary
A developer is struggling to extract individual objects from a JSON string array stored in product.metafields.package.included_fonts using Liquid templating.
The Problem:
- The metafield contains a JSON string array of objects
- Attempting to loop through it or use a find-like method (similar to JavaScript’s
Array.find()) returns empty strings - Standard Liquid iteration isn’t working as expected
Current Status:
- Another user has requested to see the actual output/structure of the metafield data to help diagnose the issue
- The discussion remains open, awaiting the data structure details to troubleshoot further
Do you mind sharing the output of product.metafields.package.included_fonts?