json-logic-java
json-logic-java copied to clipboard
Allow reduce code to access data
The code creates a new class LocalContext that works as data for the reduce operation, but it also delegates requests to the global data if the variable name is not "current" or "accumulator".
it makes it possible to use the variables inside a delegate logic.
RESTRICTION: This only works when the data is a map. It does not work for primitive values and for arrays.