From 4e1292234ec83f0e45aac5637fc0a39b225f861b Mon Sep 17 00:00:00 2001 From: Robert Yokota Date: Fri, 27 Sep 2024 08:47:20 -0700 Subject: [PATCH] Chain operator should respect array constructor --- src/main/java/com/dashjoin/jsonata/Parser.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/dashjoin/jsonata/Parser.java b/src/main/java/com/dashjoin/jsonata/Parser.java index 488e2fe..b72b4ea 100644 --- a/src/main/java/com/dashjoin/jsonata/Parser.java +++ b/src/main/java/com/dashjoin/jsonata/Parser.java @@ -1176,6 +1176,7 @@ Symbol processAST(Symbol expr) { result = new Symbol(); result.type = "apply"; result.value = expr.value; result.position = expr.position; result.lhs = processAST(expr.lhs); result.rhs = processAST(expr.rhs); + result.keepArray = result.lhs.keepArray || result.rhs.keepArray; break; default: Infix _result = new Infix(null);