@Property(name="type",
value="OPEN")
@Service(value=ResultSerializer.class)
public class OpenResultSerializerImpl
extends AbstractResultSerializer
implements ResultSerializer
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE |
PROP_TYPE| Constructor and Description |
|---|
OpenResultSerializerImpl() |
| 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
|
toJSON, toJSONpublic static final String TYPE
public com.google.gson.JsonObject toJSON(Result result, org.apache.sling.api.resource.ValueMap config)
ResultSerializertoJSON in interface ResultSerializerresult - the Resultconfig - configuration used by ResultSerializer implementationsCopyright © 2013–2020 Adobe. All rights reserved.