We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0a71fe + afe903c commit aef4286Copy full SHA for aef4286
src/jsonata.js
@@ -226,7 +226,7 @@ var jsonata = (function() {
226
} else {
227
// flatten the sequence
228
result.forEach(function(res) {
229
- if (!Array.isArray(res) || res.cons || res.keepSingleton) {
+ if (!Array.isArray(res) || res.cons) {
230
// it's not an array - just push into the result sequence
231
resultSequence.push(res);
232
test/test-suite/groups/flattening/case045.json
@@ -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
14
15
16
17
+}
0 commit comments