|Constructor and Description|
public void write(Hit hit, JSONWriter writer, Query query) throws RepositoryException, JSONException
JSONWriter. This will be called for each hit of the result page. The surrounding json structure is an array and each entry should be a simple object. The caller will have invoked the
writer.object()already and will call
writer.endObject()directly after this method returns.
hit- the result hit to render
writer- to output json
query- the original query; can be used to access custom parameters set in the predicate root group (
RepositoryException- in case access on the hit failed
JSONException- in case there is a problem with writing to the jsonwriter
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"