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 get nodes as JSON

Avatar

Avatar
Validate 10
Level 2
doeringa
Level 2

Likes

3 likes

Total Posts

54 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
doeringa
Level 2

Likes

3 likes

Total Posts

54 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
View profile
doeringa
Level 2

15-10-2015

Hi, 

I have a component on a page. Once this component is authored, I need to pick up it's node properties as Json from another Java App via an URL. 

What's the best way to achieve this? I read about very different approaches (json query servlet, write my own servlet etc.) to this and am unsure which way to go.

Any help is very appreciated. 

Thanks, 

Alex

View Entire Topic

Avatar

Avatar
Validate 10
Level 2
doeringa
Level 2

Likes

3 likes

Total Posts

54 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
doeringa
Level 2

Likes

3 likes

Total Posts

54 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
View profile
doeringa
Level 2

15-10-2015

OK. But the resource from which I want to pick up the node properties is a cq:include on a page. How can I access that? 

e.g: the page /apps/brand has a text image component on it and I want only those properties. I know that I could get all nodes on the /apps/brand page via "http://localhost:4502/apps/brand.json" but I only want the nodes from that one component on it. Is there a way to do that?

Thanks for your help!