Skip to content

Commit

Permalink
Merge pull request #51 from rayokota/fix-chain
Browse files Browse the repository at this point in the history
Chain operator should respect array constructor
  • Loading branch information
uw4 authored Oct 1, 2024
2 parents 1486626 + 4e12922 commit 8aa5b02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/dashjoin/jsonata/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8aa5b02

Please sign in to comment.