json exporter - Filter allowed components aem 6.5 | Community
Skip to main content
Pavan_Kalyan-1
Pavan_Kalyan-1Accepted solution
Level 3
December 16, 2021

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

Level 2
February 3, 2025

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
santhosh_kumark
Level 6
December 16, 2021

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
manikanthar1295
Level 5
December 16, 2021

@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
December 16, 2021

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

Translate
Pavan_Kalyan-1
Level 3
December 16, 2021

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