Expand my Community achievements bar.

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

Avatar

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

Avatar

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