What exactly are resources and resource resolvers. Can you please elaborate the same and essential terms relating to it?
Wanted to know how resource resolver works and if possible it's usage with an example.
A high level view can be found on https://sling.apache.org/documentation/the-sling-engine/resources.html. Sling is essentially the core of AEM.
The easiest way to use a ResourceResolver in a servlet is getting it from SlingHttpServletRequest.html#getResourceResolver. The resolver needs to have the appropriate repository rights to access the resource, but every node under /content
should be accessible.
You could than adapt the node to the appropriate component and get a JSON representation by Jackson mapper.