Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi everyone,
I’m currently struggling with importing HTML <ul><li>...</li></ul> content into Shopify using Matrixify, specifically into a Rich Text Metafield.
According to Matrixify support, Shopify requires this to be formatted in JSON, as Shopify’s Rich Text metafields only accept structured content, not raw HTML. Unfortunately, multi-line text is not an option for my use case, as I need to retain rich formatting in a structured and compatible way.
I’ve tried importing it directly as HTML, but the import fails. I’ve been told to manually create a metafield entry in Shopify and export it to learn the structure—but surely there must be documentation or community guidance on how to format things like <ul> and <li> properly in Shopify's Rich Text JSON?
If anyone has successfully imported structured list content into a Rich Text metafield—or has a sample JSON structure for Shopify that includes bullet lists—I'd really appreciate your input!
Thanks so much in advance 🙏
Hey @Ecomhacker could you please provide me the code so that I convert it into JSON format for you.
Thanks
Hi @TheScriptFlow , here is just one of dozens:
<ul><li>löst ganz sanft und verletzungsfrei Krusten und Schorf auf der Pferdehaut</li><li>sehr schnelle und effektive Unterstützung für das Entfernen von Maukekrusten</li><li>die hochwertigen Inhaltsstoffe in Pharmaqualität unterstützen eine schnelle Hautregeneration</li><li>Copaiba-, Moringa-, Andiroba- und Neemöl pflegen die neu gebildete Haut und unterstützen ihre Widerstandsfähigkeit</li></ul>
Hi @Ecomhacker ,
The JSON format for the richtext metafields is a pain, it's not documented anywhere, even just the JSON schema isn't available. I think part of the problem is that HTML is far more flexible than the richtext format so there's no defined way to handle cases where you have HTML that wouldn't be valid in the rich text format.
If you need to import the data from HTML you could try one of two things:
Here's a 2-minute video showing how you can bulk edit the rich text metafield, either through the app or with a spreadsheet:
As I mentioned above, the conversion from HTML → JSON involves a bit of guesswork but we've been refining it over the last few years and should be able to handle most use-cases. If you do run into an issue you can always undo the changes in the app with a click and reach out and we'll take a look.
Best,
Daniel
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