Parse a nested json file
Hi ,
I want to parse a nested json file , using sightly and java / javascript. How can i achieve this ? Please let me know
Regards
Hi ,
I want to parse a nested json file , using sightly and java / javascript. How can i achieve this ? Please let me know
Regards
Hi
As mentioned by Scott,
You can parse JSON the same way you would do for a non-AEM project - you can use JavaScript.
Git :- https://helpx.adobe.com/experience-manager/using/restful-services.html
//parse.js
Community article:- https://helpx.adobe.com/experience-manager/using/using-jsonwriter-objects-display-cq.html
https://helpx.adobe.com/experience-manager/using/custom-sling-servlets.html
// This article uses a JSONWriter instance to pass data to the web client
Example:- http://jsfiddle.net/5pjha/
I hope this would of some help to you.
Thanks and Regards
Kautuk Sahni
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.