json exporter - Filter allowed components aem 6.5 | Community
Skip to main content
AEMLearner-1989
Level 4
December 16, 2021
Solved

json exporter - Filter allowed components aem 6.5

  • December 16, 2021
  • 3 replies
  • 2388 views

Hi Friends ,

 

Is there any ootb configuration available to filter the component exporter.

 

For example : http://localhost:4502/content/we-retail/us/en/men.model.json

 

it showing allowedComponents gridClassNames ,columnCount etc ..  I want to expose only essential items to react

Best answer by Pavan_Kalyan-1

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.

 

3 replies

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

AEMLearner-1989
Level 4
December 16, 2021

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

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.

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