:children object not showing in <root-page>.model.json | Community
Skip to main content
Level 2
August 2, 2021
Solved

:children object not showing in <root-page>.model.json

  • August 2, 2021
  • 2 replies
  • 1079 views

I have aem 6.5 + react spa project . I have several child pages under /en/ page, but when I am trying to load /content/<project>/en.model.json  ,I am unable to get :children object in the json . What can be the issue here?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Umesh_Thakur

Hi @raviranjan,

It seems there is confusion in understanding, page_name.model.json is not giving any details about the child pages but it provide the details about the authored components and its data on the page.

For child pages details you need to use any other mechanisms like servlet an all.

See the below article for the purpose:

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

Hope this will help.

Umesh Thakur

2 replies

Umesh_Thakur
Community Advisor
Umesh_ThakurCommunity AdvisorAccepted solution
Community Advisor
August 2, 2021

Hi @raviranjan,

It seems there is confusion in understanding, page_name.model.json is not giving any details about the child pages but it provide the details about the authored components and its data on the page.

For child pages details you need to use any other mechanisms like servlet an all.

See the below article for the purpose:

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

Hope this will help.

Umesh Thakur

Vijayalakshmi_S
Level 10
August 3, 2021

Hi @raviranjan,

Can you let know the SPA Project core version you are using. 

Also, cross check if Adobe CQ JSON Exporter bundle is active and your SPA project code base is importing the same(As evident from Imported Packages section of your SPA project bundle) and resolved correctly to it. 

 

To be specific, this method from HierarchyNodeExporter - https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/javadoc/com/adobe/cq/export/json/hierarchy/HierarchyNodeExporter.html#getExportedChildren--

is responsible for :children in root page model response of SPA project/page created using SPA root page template.