Class JsonPathFunctions

java.lang.Object
org.citrusframework.validation.json.JsonPathFunctions

public class JsonPathFunctions extends Object
Custom JsonPath function support for size(), keySet() and toString() operations on Json objects and arrays.
Since:
2.5
Author:
Christoph Deppisch
  • Constructor Details

    • JsonPathFunctions

      public JsonPathFunctions()
  • Method Details

    • evaluate

      public static Object evaluate(Object jsonPathResult, String jsonPathFunction)
      Evaluates function on result. Supported functions are size(), keySet(), values() and toString().
      Parameters:
      jsonPathResult -
      jsonPathFunction -
      Returns:
    • getSupportedFunctions

      public static String[] getSupportedFunctions()
      Gets names of supported functions.
      Returns: