Create a Servlet to extract JSON in a path where aem nodes have property name country mexico in the form of JSON Array | Community
Skip to main content
Level 3
Jan 2, 2023 7:16 AM UTC
Solved

Create a Servlet to extract JSON in a path where aem nodes have property name country mexico in the form of JSON Array

I need to create a servlet that whenever we write infinity.json the product whose properties has country mexico all Products should appear in json array.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
aanchal-sikka
aanchal-sikkaAccepted solution
New Participant
Jan 2, 2023 10:56 AM UTC

Hello @rohankalra 

 

The infinity.json type of a functionality, are we trying to achieve this for Pages or CF?

Aanchal Sikka

2 replies

aanchal-sikka
aanchal-sikkaAccepted solution
New Participant
Jan 2, 2023 10:56 AM UTC

Hello @rohankalra 

 

The infinity.json type of a functionality, are we trying to achieve this for Pages or CF?

Translate
Aanchal Sikka
Bhuwan_B
New Participant
Jan 2, 2023 7:57 AM UTC

@rohankalra infinity.json is an ootb implementation to get data at all level. To solve your use case, you can write a servlet which uses JCR SQL2 to perform the required search to fetch results in Json.

Translate