jsonata-java icon indicating copy to clipboard operation
jsonata-java copied to clipboard

Fix handling of nulls passed via context

Open rayokota opened this issue 1 year ago • 0 comments

This is a port of the corresponding fix in the Python implementation of JSONata, see this.

The fix allows a null obtained from the context to be properly handled, so that the following two expressions return the same result (where a is undefined):

     jsonata("$split(a, '-')").evaluate(Map.of());

     jsonata("a ~> $split('-')").evaluate(Map.of());

rayokota avatar Aug 03 '24 16:08 rayokota