I have a requirement like to update json file by using sling servlet waking up with ajax call .
like:
Path: apps/myproject/jsonfile/xyz.json
Solved! Go to Solution.
@keshava219 you may just need to call the servlet via form-submit/ajax,
call the 3rd party API from the servlet ,
get the resonpse ,
manupulate the data as required and use JCR APIs to manupulate JCR nodes etc.
and send it back via response object.
you can also ref these links.: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-where-to-store-json...
@keshava219 Can you describe a bit more on this?
Hi @Manu_Mathew_ ,
i want to update json values which coming from thirdparty api to store in jcr repository that will render in dialog dropdown .
to get this requirement i need to use ajax call to send some params and then servlet will update json file
@keshava219 you may just need to call the servlet via form-submit/ajax,
call the 3rd party API from the servlet ,
get the resonpse ,
manupulate the data as required and use JCR APIs to manupulate JCR nodes etc.
and send it back via response object.
you can also ref these links.: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-where-to-store-json...
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies