コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Question:Using SlingAllMethodsServlet interface changed in AEM 6.2??

Avatar

Level 9

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

1 受け入れられたソリューション

Avatar

正解者
Level 10

Hi Kishore,

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

元の投稿で解決策を見る

2 返信

Avatar

正解者
Level 10

Hi Kishore,

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

Avatar

Level 9

Thank you..