The following illustration shows the image component.
You can use a Sling Model Exporter to get component details that are returned within JSON, as shown in the following illustration.
The data is retrieved from the AEM JCR located here:
The following illustration shows this node.
You can create a Sling Model Exporter by using Java APIs located in the org.apache.sling.models.annotations package. To read this development article, click: https://helpx.adobe.com/experience-manager/using/aem63_sling_model_exporter.html.