Filter out Ghost Component from JSON on publish server
Hi Team,
If a component is deleted from a live copy page, AEM replaces it with a "ghost" component ( wcm/msm/components/ghost ).
As per business requirements,
I have to delete this Ghost component on publish server only but It should remain in the page model on AEM author to ensure that users can re-instate deleted components as needed.
<div data-cq-data-path="/content/weretail/home/livecopysample/jcr:content/root/decorativepanel/content/row/grid/text" class="cq-Editable-dom"><div class="aem-placeholder">Ghost Component<br><strong>wcm/msm/components/ghost</strong></div><div></div></div>
