Alternative library to jsonWriter to convert page to Json
Hi all,
I am implementing AEM site search functionality using elastic search. My requirement is to extract the page content as json and push it to Elastic search for indexing. I will have to do this on author on an event .
I have implemented this using com.day.cq.commons.TidyJsonItemWriter and jsonWriter.dump(node, out, 10) which gives me desired output . My concern is, this method throws JSONException which is of class org.apache.sling.commons.json.JSONException; and its a deprecated hence i don't want to use it . Could some one suggest what would be the best way to achieve json dump for my page content including all the components in a page.