Skip to main content
Michael_Soprano
Level 10
Jul 2, 2026 12:32 PM UTC
Question

Cobe base experience - how to add asset from AEM Assets

I do not see any option to change between HTML & JSON

When I add image from AEM Assets in HTML

How to add that html to JSON?

 

1 reply

Pulkit_Jain_
Adobe Employee
Adobe Employee
Jul 2, 2026 5:12 PM UTC

​@Michael_Soprano 

CBE code editor has an explicit HTML / JSON mode and you should switch it to JSON (the {} icon) before pasting/authoring raw JSON. 

If you add AEM Assets while the editor is in HTML mode, the payload is treated as HTML. Recommended approach for JSON:

{
"image": "https://your-aem-asset-url.jpg"
}

If you must include HTML inside JSON:

{
"html": "<img src=\"https://your-aem-url.jpg\" />"
}

 

Translate