@ProviderType
public interface ResultSerializer
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.JsonObject |
toJSON(Result result,
org.apache.sling.api.resource.ValueMap config)
Turns a Result object into a JSON object
|
static final String PROP_TYPE
com.google.gson.JsonObject toJSON(Result result, org.apache.sling.api.resource.ValueMap config)
result - the Resultconfig - configuration used by ResultSerializer implementationsJSONExceptionCopyright © 2013–2020 Adobe. All rights reserved.