Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to create/expose JSON from Navigation Component?

Avatar

Avatar
Level 1
saurabhn3378167
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
saurabhn3378167
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile
saurabhn3378167
Level 1

01-11-2019

Is there any way by using sling model/exporter we can expose Navigation menu items in JSON/HTML/XML format.

Since Navigation component has only one field to author i.e. root page property and it populates all sub tree so only root path get stored on jcr:content. and we try model.json we get only root page path property in it. How to get all the tree values in json?

View Entire Topic

Avatar

Avatar
Level 1
saurabhn3378167
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
saurabhn3378167
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile
saurabhn3378167
Level 1

04-11-2019

Thank you but how to create xml using sling model.

Since for json it provides jackson, is there anything for xml ?