Class PathsJson<C,P>

java.lang.Object
lib.aide.paths.PathsJson<C,P>

public class PathsJson<C,P> extends Object
  • Field Details

    • objectMapper

      public static final com.fasterxml.jackson.databind.ObjectMapper objectMapper
  • Constructor Details

    • PathsJson

      public PathsJson()
  • Method Details

    • toJson

      public com.fasterxml.jackson.databind.JsonNode toJson(Paths<C,P> paths, Optional<PathsJson.PayloadJsonSupplier<C,P>> payloadRenderer) throws Exception
      Converts the Paths instance to a JSON string representation.
      Parameters:
      paths - the Paths instance to convert
      payloadRenderer - an optional payload renderer
      Returns:
      the JSON string representation of the Paths instance
      Throws:
      Exception - if an error occurs during JSON conversion