Skip to content

Commit aef4286

Browse files
Merge branch 'master' into fix_297
2 parents a0a71fe + afe903c commit aef4286

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

src/jsonata.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ var jsonata = (function() {
226226
} else {
227227
// flatten the sequence
228228
result.forEach(function(res) {
229-
if (!Array.isArray(res) || res.cons || res.keepSingleton) {
229+
if (!Array.isArray(res) || res.cons) {
230230
// it's not an array - just push into the result sequence
231231
resultSequence.push(res);
232232
} else {
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"expr": "$.tags[title='example'][]",
3+
"data": {
4+
"tags": [
5+
{
6+
"title": "example",
7+
"description": "Hello"
8+
}
9+
]
10+
},
11+
"result": [
12+
{
13+
"title": "example",
14+
"description": "Hello"
15+
}
16+
]
17+
}

0 commit comments

Comments
 (0)