Skip to content

Commit 8aa5b02

Browse files
authored
Merge pull request #51 from rayokota/fix-chain
Chain operator should respect array constructor
2 parents 1486626 + 4e12922 commit 8aa5b02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/dashjoin/jsonata/Parser.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,7 @@ Symbol processAST(Symbol expr) {
11761176
result = new Symbol(); result.type = "apply"; result.value = expr.value; result.position = expr.position;
11771177
result.lhs = processAST(expr.lhs);
11781178
result.rhs = processAST(expr.rhs);
1179+
result.keepArray = result.lhs.keepArray || result.rhs.keepArray;
11791180
break;
11801181
default:
11811182
Infix _result = new Infix(null);

0 commit comments

Comments
 (0)