In my previous article’s you have seen how to export page data as a JSON format using servlet, now, I am going to explain exporting page content as JSON using sling models exporter, using sling model exporter you can get below advantages
Sling model exporter is very useful when you want to publish your data to third party system’s or consuming within the site using ajax request if you have sling models and wants to serialize them, by providing simple @Exporter annotations to the existing sling models you can convert your model to CaaS based URL
Refer below link to get to access to complete article and to download code
Excellent community content!
Really valuable content!!
~kautuk
Views
Replies
Total Likes
Hi Raj,
I have the similar requirement.
I have a site with several pages and each page has 1 or more content fragments on it + some other components.
Now when i request the page as model.json, I want to hide/remove the unwanted data from my json. How can i achieve this?
Can you please guide me on this?
Views
Replies
Total Likes
Views
Like
Replies
Views
Likes
Replies