Class JoltTransformer


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

      Constructors 
      Constructor Description
      JoltTransformer()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static io.vertx.core.Future<io.vertx.core.json.JsonObject> transform​(java.lang.String jsonInput, JoltSpec spec)
      Transforms the provided input using the JoltSpec specification.
      • Methods inherited from class java.lang.Object

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

      • JoltTransformer

        public JoltTransformer()
    • Method Detail

      • transform

        public static io.vertx.core.Future<io.vertx.core.json.JsonObject> transform​(java.lang.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