Class JoltTransformer


  • public class JoltTransformer
    extends Object
    Performs JSON-to-JSON transformations using the Jolt library
    Author:
    https://github.com/mcweba [Marc-Andre Weber]
    • Constructor Detail

      • JoltTransformer

        public JoltTransformer()
    • Method Detail

      • transform

        public static io.vertx.core.Future<io.vertx.core.json.JsonObject> transform​(String jsonInput,
                                                                                    JoltSpec spec)
        Transforms the provided input using the JoltSpec specification.
        Parameters:
        jsonInput - the string json input to transform
        spec - the JoltSpec defining how to transform the input
        Returns:
        a Future holding the transformed JSON or an error