Class MapSerializer

    • Constructor Detail

      • MapSerializer

        public MapSerializer()
    • Method Detail

      • toJson

        public elemental.json.JsonValue toJson​(Object value)
        Serializes a map configuration object to JSON using a Jackson ObjectMapper, and returns the value as a JsonValue to provide it in a type that is compatible with Flow.

        Throws a runtime exception if the object can not be serialized to JSON.

        Parameters:
        value - the map configuration object to be serialized into JSON
        Returns:
        a JsonValue representing the configuration object as JSON