Skip to content

Commit 1fd8a4a

Browse files
committed
Include Rust_serde_json_path
Closes #141
1 parent 093d133 commit 1fd8a4a

File tree

204 files changed

+6655
-2165
lines changed

Some content is hidden

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

204 files changed

+6655
-2165
lines changed

bug_reports/Bash_JSONPath.sh.md

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,30 @@ The following queries provide results that do not match those of other implement
9696
[]
9797
```
9898

99+
- [ ] `$[0:3:-2]`
100+
Input:
101+
```
102+
[
103+
"first",
104+
"second",
105+
"third",
106+
"forth",
107+
"fifth"
108+
]
109+
```
110+
Expected output:
111+
```
112+
[]
113+
```
114+
Actual output:
115+
```
116+
[
117+
"first",
118+
"second",
119+
"third"
120+
]
121+
```
122+
99123
- [ ] `$[:]`
100124
Input:
101125
```
@@ -1137,6 +1161,47 @@ The following queries provide results that do not match those of other implement
11371161
[]
11381162
```
11391163

1164+
- [ ] `$[?(@.a && (@.b || @.c))]`
1165+
Input:
1166+
```
1167+
[
1168+
{
1169+
"a": true
1170+
},
1171+
{
1172+
"a": true,
1173+
"b": true
1174+
},
1175+
{
1176+
"a": true,
1177+
"b": true,
1178+
"c": true
1179+
},
1180+
{
1181+
"b": true,
1182+
"c": true
1183+
},
1184+
{
1185+
"a": true,
1186+
"c": true
1187+
},
1188+
{
1189+
"c": true
1190+
},
1191+
{
1192+
"b": true
1193+
}
1194+
]
1195+
```
1196+
Expected output:
1197+
```
1198+
[{"a": true, "b": true}, {"a": true, "b": true, "c": true}, {"a": true, "c": true}]
1199+
```
1200+
Actual output:
1201+
```
1202+
[]
1203+
```
1204+
11401205
- [ ] `$[?()]`
11411206
Input:
11421207
```
@@ -1449,6 +1514,39 @@ The following queries provide results that do not match those of other implement
14491514
[]
14501515
```
14511516

1517+
- [ ] `$[?(@.length() == 4)]`
1518+
Input:
1519+
```
1520+
[
1521+
[
1522+
1,
1523+
2,
1524+
3,
1525+
4,
1526+
5
1527+
],
1528+
[
1529+
1,
1530+
2,
1531+
3,
1532+
4
1533+
],
1534+
[
1535+
1,
1536+
2,
1537+
3
1538+
]
1539+
]
1540+
```
1541+
Expected output:
1542+
```
1543+
NOT_SUPPORTED
1544+
```
1545+
Actual output:
1546+
```
1547+
[]
1548+
```
1549+
14521550
- [ ] `$[?(@.key='value')]`
14531551
Input:
14541552
```
@@ -1816,6 +1914,34 @@ The following queries provide results that do not match those of other implement
18161914
[]
18171915
```
18181916

1917+
- [ ] `$..`
1918+
Input:
1919+
```
1920+
[
1921+
{
1922+
"a": {
1923+
"b": "c"
1924+
}
1925+
},
1926+
[
1927+
0,
1928+
1
1929+
]
1930+
]
1931+
```
1932+
Expected output (in any order as no consensus on ordering exists):
1933+
```
1934+
NOT_SUPPORTED
1935+
```
1936+
Actual output:
1937+
```
1938+
[
1939+
"c",
1940+
0,
1941+
1
1942+
]
1943+
```
1944+
18191945
- [ ] `$.key..`
18201946
Input:
18211947
```

bug_reports/C_json-glib.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,10 @@ The following queries provide results that do not match those of other implement
430430
"fifth"
431431
]
432432
```
433+
Expected output:
434+
```
435+
[]
436+
```
433437
Error:
434438
```
435439
timeout: sending signal TERM to command ‘build/main’
@@ -1577,6 +1581,48 @@ The following queries provide results that do not match those of other implement
15771581
Unable to compile selector `$[?(@[1]=='b')]': Invalid array index definition “?(@[1]=='b')]”
15781582
```
15791583

1584+
- [ ] `$[?(@.a && (@.b || @.c))]`
1585+
Input:
1586+
```
1587+
[
1588+
{
1589+
"a": true
1590+
},
1591+
{
1592+
"a": true,
1593+
"b": true
1594+
},
1595+
{
1596+
"a": true,
1597+
"b": true,
1598+
"c": true
1599+
},
1600+
{
1601+
"b": true,
1602+
"c": true
1603+
},
1604+
{
1605+
"a": true,
1606+
"c": true
1607+
},
1608+
{
1609+
"c": true
1610+
},
1611+
{
1612+
"b": true
1613+
}
1614+
]
1615+
```
1616+
Expected output:
1617+
```
1618+
[{"a": true, "b": true}, {"a": true, "b": true, "c": true}, {"a": true, "c": true}]
1619+
```
1620+
Actual output:
1621+
NOT_SUPPORTED
1622+
```
1623+
Unable to compile selector `$[?(@.a && (@.b || @.c))]': Invalid array index definition “?(@.a && (@.b || @.c))]”
1624+
```
1625+
15801626
- [ ] `$[?(@==42)]`
15811627
Input:
15821628
```

bug_reports/Clojure_json-path.md

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,26 @@ The following queries provide results that do not match those of other implement
282282
4
283283
```
284284

285+
- [ ] `$[0:3:-2]`
286+
Input:
287+
```
288+
[
289+
"first",
290+
"second",
291+
"third",
292+
"forth",
293+
"fifth"
294+
]
295+
```
296+
Expected output:
297+
```
298+
[]
299+
```
300+
Actual output:
301+
```
302+
"first"
303+
```
304+
285305
- [ ] `$[7:3:-1]`
286306
Input:
287307
```
@@ -1800,6 +1820,57 @@ The following queries provide results that do not match those of other implement
18001820
]
18011821
```
18021822

1823+
- [ ] `$[?(@.a && (@.b || @.c))]`
1824+
Input:
1825+
```
1826+
[
1827+
{
1828+
"a": true
1829+
},
1830+
{
1831+
"a": true,
1832+
"b": true
1833+
},
1834+
{
1835+
"a": true,
1836+
"b": true,
1837+
"c": true
1838+
},
1839+
{
1840+
"b": true,
1841+
"c": true
1842+
},
1843+
{
1844+
"a": true,
1845+
"c": true
1846+
},
1847+
{
1848+
"c": true
1849+
},
1850+
{
1851+
"b": true
1852+
}
1853+
]
1854+
```
1855+
Expected output:
1856+
```
1857+
[{"a": true, "b": true}, {"a": true, "b": true, "c": true}, {"a": true, "c": true}]
1858+
```
1859+
Actual output:
1860+
```
1861+
[
1862+
{
1863+
"a": true,
1864+
"b": true,
1865+
"c": true
1866+
},
1867+
{
1868+
"a": true,
1869+
"c": true
1870+
}
1871+
]
1872+
```
1873+
18031874
- [ ] `$[?()]`
18041875
Input:
18051876
```
@@ -2365,6 +2436,39 @@ The following queries provide results that do not match those of other implement
23652436
java.lang.Exception object must be an array.
23662437
```
23672438

2439+
- [ ] `$[?(@.length() == 4)]`
2440+
Input:
2441+
```
2442+
[
2443+
[
2444+
1,
2445+
2,
2446+
3,
2447+
4,
2448+
5
2449+
],
2450+
[
2451+
1,
2452+
2,
2453+
3,
2454+
4
2455+
],
2456+
[
2457+
1,
2458+
2,
2459+
3
2460+
]
2461+
]
2462+
```
2463+
Expected output:
2464+
```
2465+
NOT_SUPPORTED
2466+
```
2467+
Actual output:
2468+
```
2469+
[]
2470+
```
2471+
23682472
- [ ] `$[?(@.length == 4)]`
23692473
Input:
23702474
```
@@ -2819,6 +2923,56 @@ The following queries provide results that do not match those of other implement
28192923
null
28202924
```
28212925

2926+
- [ ] `$..`
2927+
Input:
2928+
```
2929+
[
2930+
{
2931+
"a": {
2932+
"b": "c"
2933+
}
2934+
},
2935+
[
2936+
0,
2937+
1
2938+
]
2939+
]
2940+
```
2941+
Expected output (in any order as no consensus on ordering exists):
2942+
```
2943+
NOT_SUPPORTED
2944+
```
2945+
Actual output:
2946+
```
2947+
[
2948+
0,
2949+
1,
2950+
[
2951+
0,
2952+
1
2953+
],
2954+
[
2955+
{
2956+
"a": {
2957+
"b": "c"
2958+
}
2959+
},
2960+
[
2961+
0,
2962+
1
2963+
]
2964+
],
2965+
{
2966+
"a": {
2967+
"b": "c"
2968+
}
2969+
},
2970+
{
2971+
"b": "c"
2972+
}
2973+
]
2974+
```
2975+
28222976
- [ ] `$.key..`
28232977
Input:
28242978
```

0 commit comments

Comments
 (0)