Get .model.json as String
问题 I wonder if there is an easy way to get a String with the result of a sling content exporter in AEM. In my current usecase I need the content of a component's .model.json output in the component's htl file and sending an additional request is obviously not a good idea. Any hints on how I can get the data? 回答1: After some reading and experimenting, I found a way to do it: Add a dependency to the following package in your pom: <dependency> <groupId>com.fasterxml.jackson.core</groupId>