Sling Model Exporters - Override node name
Hi All,
We are trying to determine if there is a way to override the node name while exposing the model JSON. The properties for JSON can be controlled by exporter but not the node name itself. For example following is page structure
page
jcr:content
parsys
component (node has its properties)
component_xxx (node has its properties)
component_yyy (node has its properties)
Component has its exporter implemented. Now when we try to get data as page.model.json we get the node names in response as component, component_xxx, component_yyy.
Is there way to change this in Sling Model Exporter JSON output, as by default AEM generates random node names for same component dragged in page, we wanted to expose a meaningful name as part of JSON output (We are trying to customize content fragment JSON output). Let me know if there is way or which direction which should look into.
Thanks,
Sandeep
