render infinity.json with child nodes

Avatar

Avatar
Validate 1
Level 2
SundarNarayanan
Level 2

Likes

4 likes

Total Posts

7 posts

Correct reply

1 solution
Top badges earned
Validate 1
Give Back
Ignite 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
SundarNarayanan
Level 2

Likes

4 likes

Total Posts

7 posts

Correct reply

1 solution
Top badges earned
Validate 1
Give Back
Ignite 1
Boost 3
Boost 1
View profile
SundarNarayanan
Level 2

23-08-2019

Hi All,

I have a aem node structure in which certain fields are the path fields(pages are linked) referring to aem node structure of the different pages

when i retrieve the content in json format .infinity.json it pulls the content as such rather than the retrieving the content of the child pages linked

( In simple primary and foreign key relationship of the pages)

is it possible to indicate it to aem servlet so it pulls the structure of the child pages as well when requested in specific format?

Node Structure page 1

--- a

--- b

--- c -- > c1,c2

--- d

here c1,c2 are the pages linked in the page 1 by pathfield

now when i retrieve the content by .infinity.json i could see c1,c2 are getting printed as such but what i want is the system to pull all the nodes in the pages in c1,c2

Thanks

Replies

Avatar

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile
Gaurav-Behl
MVP

23-08-2019

Avatar

Avatar
Give Back 5
MVP
Umesh_Sondhi
MVP

Likes

56 likes

Total Posts

64 posts

Correct reply

28 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 50
Boost 5
View profile

Avatar
Give Back 5
MVP
Umesh_Sondhi
MVP

Likes

56 likes

Total Posts

64 posts

Correct reply

28 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 50
Boost 5
View profile
Umesh_Sondhi
MVP

02-09-2019

Avatar

Avatar
Validate 1
Level 2
SundarNarayanan
Level 2

Likes

4 likes

Total Posts

7 posts

Correct reply

1 solution
Top badges earned
Validate 1
Give Back
Ignite 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
SundarNarayanan
Level 2

Likes

4 likes

Total Posts

7 posts

Correct reply

1 solution
Top badges earned
Validate 1
Give Back
Ignite 1
Boost 3
Boost 1
View profile
SundarNarayanan
Level 2

16-09-2019

gauravb41175071

Umeshsondhi

Yes i have checked the possibility but i am using aem 6.0 which uses model 1.0 version

it does not work for 6.0

Avatar

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile
Gaurav-Behl
MVP

16-09-2019

In that case you may write a custom code to export json using Jackson/GSON API. Obviously, you'd end up writing a lot of boilerplate code. E.g. https://www.concretepage.com/jackson-api/read-write-json-using-jackson-objectmapper-jsonparser-jsong... ,https://www.geeksforgeeks.org/convert-java-object-to-json-string-using-jackson-api/ https://www.concretepage.com/jackson-api/read-write-json-using-jackson-objectmapper-jsonparser-jsong...

Otherwise, as recommended by Adobe, upgrade your AEM version.

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,440 likes

Total Posts

3,312 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,440 likes

Total Posts

3,312 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

16-09-2019