please help me regarding the same.
Solved! Go to Solution.
Views
Replies
Total Likes
If you want a servlet that returns JSON and only contains this property - write your own sling servlet and create app logic to get the properties that you want and encode the data to JSON.
Views
Replies
Total Likes
currently i am getting this on hitting the url---http://localhost:4502/etc/tags/country.-1.json
{"jcr:description":"","sling:resourceType":"cq/tagging/components/tag","jcr:title":"country","jcr:createdBy":"admin","jcr:created":"Mon Jun 08 2015 10:43:04 GMT+0530","jcr:primaryType":"cq:Tag","india":{"jcr:description":"","sling:resourceType":"cq/tagging/components/tag","jcr:title":"india","jcr:createdBy":"admin","jcr:created":"Mon Jun 08 2015 10:43:04 GMT+0530","jcr:primaryType":"cq:Tag","Delhi":{"jcr:description":"","sling:resourceType":"cq/tagging/components/tag","jcr:title":"Delhi","jcr:createdBy":"admin","jcr:created":"Mon Jun 08 2015 10:43:04 GMT+0530","jcr:primaryType":"cq:Tag"},"Kolkata":{"jcr:description":"","sling:resourceType":"cq/tagging/components/tag","jcr:title":"Kolkata","jcr:createdBy":"admin","jcr:created":"Mon Jun 08 2015 10:43:04 GMT+0530","jcr:primaryType":"cq:Tag"}},"Australia":{"jcr:description":"","sling:resourceType":"cq/tagging/components/tag","jcr:title":"Australia","jcr:createdBy":"admin","jcr:created":"Mon Jun 08 2015 10:43:04 GMT+0530","jcr:primaryType":"cq:Tag","sydney":{"jcr:description":"","sling:resourceType":"cq/tagging/components/tag","jcr:title":"sydney","jcr:createdBy":"admin","jcr:created":"Mon Jun 08 2015 10:43:04 GMT+0530","jcr:primaryType":"cq:Tag"},"Melbourne":{"jcr:description":"","sling:resourceType":"cq/tagging/components/tag","jcr:title":"Melbourne","jcr:createdBy":"admin","jcr:created":"Mon Jun 08 2015 10:43:04 GMT+0530","jcr:primaryType":"cq:Tag"}}}
I want each object to have only jcr:title property not other information like jcr:primary type,jcr:lastModified etc.
Views
Replies
Total Likes
Try this: http://localhost:4502/etc/tags/marketing/_jcr_title.json or http://localhost:4502/etc/tags/marketing/_jcr_title
The best way would be to create a servlet, an example can be found here: https://helpx.adobe.com/experience-manager/using/creating-custom-cq-tree.html
Views
Replies
Total Likes
If you want a servlet that returns JSON and only contains this property - write your own sling servlet and create app logic to get the properties that you want and encode the data to JSON.
Views
Replies
Total Likes
How to achieve this pls help.
Views
Replies
Total Likes
Views
Likes
Replies