JSON Renderer for Sightly Templates
Hi All,
I'm trying to create a JSON renderer for a sightly template and it should output a json content when page is requested with <pagename>.<selector>.json.
Currently its working only when it is invoked this way <pagename>/jcr:content.<selector>.json
I have done this previously on CQ5.5 with the same approached mentioned in the following thread.
Provide alternative JSON renderer? Without losing default JSON renderer?
Can someone pls advise on how to achieve the same functionality for a sightly template?
Note: I'm able to achieve the expected results by creating a servlet with resourcetype binding. However, I'm curious to understand why the renderer approach isnt working.
Regards,
Lingesh P.

