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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Accessing JSON Object key/value pair in Sightly (HTL)

RonakB
Level 3
Level 3

Is there any way in AEM 6.1 to access the key/value of JSON Object returned from Java class in Sightly (HTL)?

I believe one indirect way would be to convert the JSON to Collection (Map) in java and use the map in Sightly to access the key/value. But is there any way available to do this without conversion ?

2 Replies
RonakB
Level 3
Level 3

Hi Hemant. Thanks for replying.

I had seen the 1st link previously as well. But not sure if data-json is supported in 6.1

2nd link is very generic HTL usage related and does not provide solution to my original question