Can you please let me know which documentation are you following? I am not sure if we are on same page. I am not sure what content API are you talking about here?
If your aim is to retrieve content from AEM repository then please have a look at this link:- https://helpx.adobe.com/experience-manager/using/using-sling-apis.html
I want to get page's information as json response using sightly. How can I achieve that?
It depends, what type of information are you looking for.
Some default ways to get Json Information are:
If you want some custom information to be returned as a Json, then you need to write custom component/service.
// Converting AEM/Sling Resources to JSON
//sing JSONWriter objects to display Adobe Experience Manager data
I hope this would help you.
How to get page information, like the dialog and component included inside the page in json format, using sightly??
Is there a service or java class using sightly that converts page information, like the dialog and component included inside the page into json format??