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
New Participant
January 2, 2023
Solved

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

  • January 2, 2023
  • 2 replies
  • 796 views

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.
Best answer by aanchal-sikka

Hello @rohankalra 

 

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

2 replies

aanchal-sikka
aanchal-sikkaAccepted solution
New Participant
January 2, 2023

Hello @rohankalra 

 

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

Aanchal Sikka
Bhuwan_B
New Participant
January 2, 2023

@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.