Skip to content

Commit 384ed87

Browse files
authored
Merge pull request #7 from netomi/support-keep-array-for-map
Fix chain operator to respect array constructor
2 parents 63d7310 + aacf323 commit 384ed87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/jsonata/parser.py

+1
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,7 @@ def lambda1(terms):
11801180
result.position = expr.position
11811181
result.lhs = self.process_ast(expr.lhs)
11821182
result.rhs = self.process_ast(expr.rhs)
1183+
result.keep_array = result.lhs.keep_array or result.rhs.keep_array
11831184
else:
11841185
result = Parser.Infix(self, None)
11851186
result.type = expr.type

0 commit comments

Comments
 (0)