Class JoltTransformer
- java.lang.Object
-
- org.swisspush.gateleen.core.json.transform.JoltTransformer
-
public class JoltTransformer extends 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(String jsonInput, JoltSpec spec)Transforms the provided input using theJoltSpecspecification.
-
-
-
Method Detail
-
transform
public static io.vertx.core.Future<io.vertx.core.json.JsonObject> transform(String jsonInput, JoltSpec spec)
Transforms the provided input using theJoltSpecspecification.- Parameters:
jsonInput- the string json input to transformspec- theJoltSpecdefining how to transform the input- Returns:
- a
Futureholding the transformed JSON or an error
-
-