Question:Using SlingAllMethodsServlet interface changed in AEM 6.2?? | Community
Skip to main content
GK-007
Level 9
June 14, 2016
Solved

Question:Using SlingAllMethodsServlet interface changed in AEM 6.2??

  • June 14, 2016
  • 2 replies
  • 653 views

Hi All,

We have servlet which has implemented 'SlingAllMethodsServlet' with overriding doPost() and set returned content type as text/JSON .

In Sightly component we are accessing this servlet using $.ajax(....).

Observed ,to use this response json in Sightly component html ,no need to parse this response using $.parseJSON(response) instead i can directly use this response(var json =response) object to extract values(json.compTitle,json.Description).

Is my understanding correct or not??

or this is also one way we can get values from response object?

Please clarify if anyone has any idea.

Thanks,

Kishore

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

Hi Kishore,

In Sightly, you can directly extract the JSON data without parsing as it treats the response as an object. 

2 replies

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
June 14, 2016

Hi Kishore,

In Sightly, you can directly extract the JSON data without parsing as it treats the response as an object. 

GK-007
GK-007Author
Level 9
June 14, 2016

Thank you..