Class JohnsonEventCollectionSerializer

java.lang.Object
com.atlassian.confluence.impl.health.web.JohnsonEventCollectionSerializer

@ParametersAreNonnullByDefault public class JohnsonEventCollectionSerializer extends Object
Transforms a Collection of Johnson Events into the JSON Array needed by the Johnson page.
Since:
6.5.0
  • Constructor Details

  • Method Details

    • toJson

      public @NonNull JsonArray toJson(Iterable<com.atlassian.johnson.event.Event> events)
      Returns the JSON representation of the given Johnson events.
      Parameters:
      events - the events to serialize
      Returns:
      the JSON