Class GenericResultSerializerImpl

    • Constructor Detail

      • GenericResultSerializerImpl

        public GenericResultSerializerImpl()
    • Method Detail

      • toJSON

        public com.google.gson.JsonObject toJSON​(Result result,
                                                 org.apache.sling.api.resource.ValueMap config)
        Description copied from interface: ResultSerializer
        Turns a Result object into a JSON object
        Specified by:
        toJSON in interface ResultSerializer
        Parameters:
        result - the Result
        config - configuration used by ResultSerializer implementations
        Returns:
        the JSON representation of the result