Expand my Community achievements bar.

SOLVED

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

Avatar

Level 3

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.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @rohankalra 

 

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


Aanchal Sikka

View solution in original post

2 Replies

Avatar

Community Advisor

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

Avatar

Correct answer by
Community Advisor

Hello @rohankalra 

 

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


Aanchal Sikka