Package lib.aide.paths
Class PathsJson<C,P>
java.lang.Object
lib.aide.paths.PathsJson<C,P>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.fasterxml.jackson.databind.ObjectMapper
-
Constructor Summary
Constructors -
Method Summary
-
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, throws ExceptionP>> payloadRenderer) Converts the Paths instance to a JSON string representation.- Parameters:
paths
- the Paths instance to convertpayloadRenderer
- an optional payload renderer- Returns:
- the JSON string representation of the Paths instance
- Throws:
Exception
- if an error occurs during JSON conversion
-