How to get a Json for a page model which I am calling through customheaderlibs.html
1st method: I have an exporter model without any resource type, this is generally a page model. When I call this model through customheaderlibs.html, it is getting called on page load but I am unable to see any JSON for the same, want to get Json for the getters inside the model.
This model Json we will pass to react team and they will help see seo data based on it, which will be visible in view page source.
as this is a spa project where we have headless aem and no component htl, we are integrating with react for the view and page source.
when there was no headless then we were using metadat.html for the same, but now getting difficulty in the headless approach where we have to get the same model data as json.
Note: data in model is getting populated from page properties.