Skip to main content
Pavan_Kalyan-1
Pavan_Kalyan-1Accepted solution
Level 3
Dec 16, 2021 12:26 PM UTC

How you achieved this ??


AEM Tutorial #19 | Jackson exporter in AEM | Sling Model Exporter using Jackson Exporter in aem - YouTube

refer to this video you will see it in action.

 

8 replies

manikanthar1295
Level 5
Dec 16, 2021 8:41 AM UTC

@aemlearner-1989 

 

You want to export particular complement or  entire page which one you need to export ??

 

Regards

Manikantha R

Translate
AEMLearner-1989
Level 4
Dec 16, 2021 8:44 AM UTC

Entire page but dnt wanna expose the unwanted elements like allowedcompoments to other applications.

Translate
Pavan_Kalyan-1
Level 3
Dec 16, 2021 9:07 AM UTC

Hi @aemlearner-1989 

their is an annotation called @JsonIgnore which is used to hide the unwanted elements in your sling model.

add this annotation to the elements which you don't want to expose.

thanks.

Translate
santhosh_kumark
Level 6
Dec 16, 2021 9:21 AM UTC

Hi @aemlearner-1989,

 

You can use Jackson Annotation @JsonIgnore for that. Please find the detailed article regarding this.

 

https://experienceleague.adobe.com/docs/experience-manager-64/developing/components/json-exporter-components.html?lang=en

 

http://www.sgaemsolutions.com/2017/06/sling-model-exporter-in-aem-63.html

 

 

Regards,

Santosh

Translate
Level 2
Feb 3, 2025 7:19 PM UTC

Hello, 

 

We do have similar requirement to exclude the allowedComponents from the jackson exporter, but we are not overlaying ResponsiveGrid class ( wcm/foundation/components/responsivegrid ) to use jsonIgnore annotation, Can you help or elaborate how is it achieved at your end.

 

Thanks,

-Krishna.

Translate