Package 

Class VariableSerializerKt

    • Method Summary

      Modifier and Type Method Description
      final static VariableMap serialize(Object payload, ObjectMapper mapper) Serialize variables into a map using provided object mapper.
      final static VariableMap toPayloadVariableMap(String $self, ObjectMapper objectMapper) Deserializes JSON back into variable map.
      final static String toPayloadJson(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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • serialize

         final static VariableMap serialize(Object payload, ObjectMapper mapper)

        Serialize variables into a map using provided object mapper.

        Parameters:
        payload - serialization content
        mapper - 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.