json-logic-java icon indicating copy to clipboard operation
json-logic-java copied to clipboard

Allow reduce code to access data

Open verhas opened this issue 2 months ago • 0 comments

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.

verhas avatar Oct 23 '25 15:10 verhas