-
public final class VariableSerializerKt
-
-
Method Summary
Modifier and Type Method Description final static VariableMapserialize(Object payload, ObjectMapper mapper)Serialize variables into a map using provided object mapper. final static VariableMaptoPayloadVariableMap(String $self, ObjectMapper objectMapper)Deserializes JSON back into variable map. final static StringtoPayloadJson(VariableMap $self, ObjectMapper objectMapper)Serializes payload as JSON. final static Map<String, Object>toJsonPathsWithValues(VariableMap $self, Integer limit, List<Pair<Function1<String, Boolean>, FilterType>> filters)Converts a deep map structure representing the payload into a map of one level keyed by the JSON path and valued by the value. -
-
Method Detail
-
serialize
final static VariableMap serialize(Object payload, ObjectMapper mapper)
Serialize variables into a map using provided object mapper.
- Parameters:
payload- serialization contentmapper- optional mapper, if not provided, Jackson default mapper will be used.
-
toPayloadVariableMap
final static VariableMap toPayloadVariableMap(String $self, ObjectMapper objectMapper)
Deserializes JSON back into variable map.
-
toPayloadJson
final static String toPayloadJson(VariableMap $self, ObjectMapper objectMapper)
Serializes payload as JSON.
-
toJsonPathsWithValues
final static Map<String, Object> toJsonPathsWithValues(VariableMap $self, Integer limit, List<Pair<Function1<String, Boolean>, FilterType>> filters)
Converts a deep map structure representing the payload into a map of one level keyed by the JSON path and valued by the value. The map might contain primitive types or maps as value.
- Parameters:
limit- limit of levels to convert.filters- filter object to identify properties to include into the result.
-
-
-
-