Class Length
java.lang.Object
com.jayway.jsonpath.internal.function.Length
- All Implemented Interfaces:
PathFunction
Provides the length of a JSONArray Object
Created by mattg on 6/26/15.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Length
public Length()
-
-
Method Details
-
invoke
Description copied from interface:PathFunction
Invoke the function and output a JSON object (or scalar) value which will be the result of executing the path- Specified by:
invoke
in interfacePathFunction
- Parameters:
currentPath
- The current path location inclusive of the function nameparent
- The path location above the current functionmodel
- The JSON model as input to this particular functionctx
- Eval context, state bag used as the path is traversed, maintains the result of executing- Returns:
-