Accessing JSON Object key/value pair in Sightly (HTL) | Community
Skip to main content
Level 3
February 13, 2018
Question

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

  • February 13, 2018
  • 2 replies
  • 2391 views

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 ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

RonakBAuthor
Level 3
February 15, 2018

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