Interface ResultSerializer
-
- All Known Implementing Classes:
GenericResultSerializerImpl,OpenResultSerializerImpl
@ProviderType public interface ResultSerializer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.gson.JsonObjecttoJSON(Result result, org.apache.sling.api.resource.ValueMap config)Turns a Result object into a JSON object
-
-
-
Field Detail
-
PROP_TYPE
static final String PROP_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
toJSON
com.google.gson.JsonObject toJSON(Result result, org.apache.sling.api.resource.ValueMap config)
Turns a Result object into a JSON object- Parameters:
result- the Resultconfig- configuration used by ResultSerializer implementations- Returns:
- the JSON representation of the result
- Throws:
JSONException
-
-