Interface ResultSerializer

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String PROP_TYPE  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.google.gson.JsonObject toJSON​(Result result, org.apache.sling.api.resource.ValueMap config)
      Turns a Result object into a JSON object
    • 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 Result
        config - configuration used by ResultSerializer implementations
        Returns:
        the JSON representation of the result
        Throws:
        JSONException