Skip to content

Commit 71a672d

Browse files
committed
Upgrade implementations
1 parent 391d04f commit 71a672d

File tree

149 files changed

+1811
-2178
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+1811
-2178
lines changed

bug_reports/Bash_JSONPath.sh.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,6 +1202,65 @@ The following queries provide results that do not match those of other implement
12021202
[]
12031203
```
12041204

1205+
- [ ] `$[?(@.a && @.b || @.c)]`
1206+
Input:
1207+
```
1208+
[
1209+
{
1210+
"a": true,
1211+
"b": true
1212+
},
1213+
{
1214+
"a": true,
1215+
"b": true,
1216+
"c": true
1217+
},
1218+
{
1219+
"b": true,
1220+
"c": true
1221+
},
1222+
{
1223+
"a": true,
1224+
"c": true
1225+
},
1226+
{
1227+
"a": true
1228+
},
1229+
{
1230+
"b": true
1231+
},
1232+
{
1233+
"c": true
1234+
},
1235+
{
1236+
"d": true
1237+
},
1238+
{}
1239+
]
1240+
```
1241+
Expected output:
1242+
```
1243+
[{"a": true, "b": true}, {"a": true, "b": true, "c": true}, {"b": true, "c": true}, {"a": true, "c": true}, {"c": true}]
1244+
```
1245+
Actual output:
1246+
```
1247+
[
1248+
true,
1249+
true,
1250+
true,
1251+
true,
1252+
true,
1253+
true,
1254+
true,
1255+
true,
1256+
true,
1257+
true,
1258+
true,
1259+
true,
1260+
true
1261+
]
1262+
```
1263+
12051264
- [ ] `$[?()]`
12061265
Input:
12071266
```

bug_reports/C_json-glib.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,6 +1623,52 @@ The following queries provide results that do not match those of other implement
16231623
Unable to compile selector `$[?(@.a && (@.b || @.c))]': Invalid array index definition “?(@.a && (@.b || @.c))]”
16241624
```
16251625

1626+
- [ ] `$[?(@.a && @.b || @.c)]`
1627+
Input:
1628+
```
1629+
[
1630+
{
1631+
"a": true,
1632+
"b": true
1633+
},
1634+
{
1635+
"a": true,
1636+
"b": true,
1637+
"c": true
1638+
},
1639+
{
1640+
"b": true,
1641+
"c": true
1642+
},
1643+
{
1644+
"a": true,
1645+
"c": true
1646+
},
1647+
{
1648+
"a": true
1649+
},
1650+
{
1651+
"b": true
1652+
},
1653+
{
1654+
"c": true
1655+
},
1656+
{
1657+
"d": true
1658+
},
1659+
{}
1660+
]
1661+
```
1662+
Expected output:
1663+
```
1664+
[{"a": true, "b": true}, {"a": true, "b": true, "c": true}, {"b": true, "c": true}, {"a": true, "c": true}, {"c": true}]
1665+
```
1666+
Actual output:
1667+
NOT_SUPPORTED
1668+
```
1669+
Unable to compile selector `$[?(@.a && @.b || @.c)]': Invalid array index definition “?(@.a && @.b || @.c)]”
1670+
```
1671+
16261672
- [ ] `$[?(@==42)]`
16271673
Input:
16281674
```

bug_reports/Clojure_json-path.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,6 +1871,65 @@ The following queries provide results that do not match those of other implement
18711871
]
18721872
```
18731873

1874+
- [ ] `$[?(@.a && @.b || @.c)]`
1875+
Input:
1876+
```
1877+
[
1878+
{
1879+
"a": true,
1880+
"b": true
1881+
},
1882+
{
1883+
"a": true,
1884+
"b": true,
1885+
"c": true
1886+
},
1887+
{
1888+
"b": true,
1889+
"c": true
1890+
},
1891+
{
1892+
"a": true,
1893+
"c": true
1894+
},
1895+
{
1896+
"a": true
1897+
},
1898+
{
1899+
"b": true
1900+
},
1901+
{
1902+
"c": true
1903+
},
1904+
{
1905+
"d": true
1906+
},
1907+
{}
1908+
]
1909+
```
1910+
Expected output:
1911+
```
1912+
[{"a": true, "b": true}, {"a": true, "b": true, "c": true}, {"b": true, "c": true}, {"a": true, "c": true}, {"c": true}]
1913+
```
1914+
Actual output:
1915+
```
1916+
[
1917+
{
1918+
"a": true,
1919+
"b": true
1920+
},
1921+
{
1922+
"a": true,
1923+
"b": true,
1924+
"c": true
1925+
},
1926+
{
1927+
"a": true,
1928+
"c": true
1929+
}
1930+
]
1931+
```
1932+
18741933
- [ ] `$[?()]`
18751934
Input:
18761935
```

bug_reports/Elixir_ExJsonPath.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,52 @@ The following queries provide results that do not match those of other implement
763763
illegal characters "&"
764764
```
765765

766+
- [ ] `$[?(@.a && @.b || @.c)]`
767+
Input:
768+
```
769+
[
770+
{
771+
"a": true,
772+
"b": true
773+
},
774+
{
775+
"a": true,
776+
"b": true,
777+
"c": true
778+
},
779+
{
780+
"b": true,
781+
"c": true
782+
},
783+
{
784+
"a": true,
785+
"c": true
786+
},
787+
{
788+
"a": true
789+
},
790+
{
791+
"b": true
792+
},
793+
{
794+
"c": true
795+
},
796+
{
797+
"d": true
798+
},
799+
{}
800+
]
801+
```
802+
Expected output:
803+
```
804+
[{"a": true, "b": true}, {"a": true, "b": true, "c": true}, {"b": true, "c": true}, {"a": true, "c": true}, {"c": true}]
805+
```
806+
Actual output:
807+
NOT_SUPPORTED
808+
```
809+
illegal characters "&"
810+
```
811+
766812
- [ ] `$[?(@[0:1]==1)]`
767813
Input:
768814
```

bug_reports/Elixir_jaxon.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,6 +1537,51 @@ The following queries provide results that do not match those of other implement
15371537
[]
15381538
```
15391539

1540+
- [ ] `$[?(@.a && @.b || @.c)]`
1541+
Input:
1542+
```
1543+
[
1544+
{
1545+
"a": true,
1546+
"b": true
1547+
},
1548+
{
1549+
"a": true,
1550+
"b": true,
1551+
"c": true
1552+
},
1553+
{
1554+
"b": true,
1555+
"c": true
1556+
},
1557+
{
1558+
"a": true,
1559+
"c": true
1560+
},
1561+
{
1562+
"a": true
1563+
},
1564+
{
1565+
"b": true
1566+
},
1567+
{
1568+
"c": true
1569+
},
1570+
{
1571+
"d": true
1572+
},
1573+
{}
1574+
]
1575+
```
1576+
Expected output:
1577+
```
1578+
[{"a": true, "b": true}, {"a": true, "b": true, "c": true}, {"b": true, "c": true}, {"a": true, "c": true}, {"c": true}]
1579+
```
1580+
Actual output:
1581+
```
1582+
[]
1583+
```
1584+
15401585
- [ ] `$[?()]`
15411586
Input:
15421587
```

bug_reports/Erlang_ejsonpath.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,10 @@ The following queries provide results that do not match those of other implement
744744
{}
745745
]
746746
```
747+
Expected output:
748+
```
749+
[{"a": true, "b": true}, {"a": true, "b": true, "c": true}, {"b": true, "c": true}, {"a": true, "c": true}, {"c": true}]
750+
```
747751
Error:
748752
```
749753
Timeout

bug_reports/Golang_github.com-PaesslerAG-jsonpath.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,52 @@ The following queries provide results that do not match those of other implement
624624
parsing error: $[?(@.a && (@.b || @.c))] - 1:11 unknown operator &&
625625
```
626626

627+
- [ ] `$[?(@.a && @.b || @.c)]`
628+
Input:
629+
```
630+
[
631+
{
632+
"a": true,
633+
"b": true
634+
},
635+
{
636+
"a": true,
637+
"b": true,
638+
"c": true
639+
},
640+
{
641+
"b": true,
642+
"c": true
643+
},
644+
{
645+
"a": true,
646+
"c": true
647+
},
648+
{
649+
"a": true
650+
},
651+
{
652+
"b": true
653+
},
654+
{
655+
"c": true
656+
},
657+
{
658+
"d": true
659+
},
660+
{}
661+
]
662+
```
663+
Expected output:
664+
```
665+
[{"a": true, "b": true}, {"a": true, "b": true, "c": true}, {"b": true, "c": true}, {"a": true, "c": true}, {"c": true}]
666+
```
667+
Actual output:
668+
NOT_SUPPORTED
669+
```
670+
parsing error: $[?(@.a && @.b || @.c)] - 1:11 unknown operator &&
671+
```
672+
627673
- [ ] `$[?(@.key=='value')]`
628674
Input:
629675
```

0 commit comments

Comments
 (0)