Skip to content

Commit

Permalink
Include Rust_serde_json_path
Browse files Browse the repository at this point in the history
Closes #141
  • Loading branch information
cburgmer committed Feb 25, 2024
1 parent 093d133 commit 1fd8a4a
Show file tree
Hide file tree
Showing 204 changed files with 6,655 additions and 2,165 deletions.
126 changes: 126 additions & 0 deletions bug_reports/Bash_JSONPath.sh.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,30 @@ The following queries provide results that do not match those of other implement
[]
```

- [ ] `$[0:3:-2]`
Input:
```
[
"first",
"second",
"third",
"forth",
"fifth"
]
```
Expected output:
```
[]
```
Actual output:
```
[
"first",
"second",
"third"
]
```

- [ ] `$[:]`
Input:
```
Expand Down Expand Up @@ -1137,6 +1161,47 @@ The following queries provide results that do not match those of other implement
[]
```

- [ ] `$[?(@.a && (@.b || @.c))]`
Input:
```
[
{
"a": true
},
{
"a": true,
"b": true
},
{
"a": true,
"b": true,
"c": true
},
{
"b": true,
"c": true
},
{
"a": true,
"c": true
},
{
"c": true
},
{
"b": true
}
]
```
Expected output:
```
[{"a": true, "b": true}, {"a": true, "b": true, "c": true}, {"a": true, "c": true}]
```
Actual output:
```
[]
```

- [ ] `$[?()]`
Input:
```
Expand Down Expand Up @@ -1449,6 +1514,39 @@ The following queries provide results that do not match those of other implement
[]
```

- [ ] `$[?(@.length() == 4)]`
Input:
```
[
[
1,
2,
3,
4,
5
],
[
1,
2,
3,
4
],
[
1,
2,
3
]
]
```
Expected output:
```
NOT_SUPPORTED
```
Actual output:
```
[]
```

- [ ] `$[?(@.key='value')]`
Input:
```
Expand Down Expand Up @@ -1816,6 +1914,34 @@ The following queries provide results that do not match those of other implement
[]
```

- [ ] `$..`
Input:
```
[
{
"a": {
"b": "c"
}
},
[
0,
1
]
]
```
Expected output (in any order as no consensus on ordering exists):
```
NOT_SUPPORTED
```
Actual output:
```
[
"c",
0,
1
]
```

- [ ] `$.key..`
Input:
```
Expand Down
46 changes: 46 additions & 0 deletions bug_reports/C_json-glib.md
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,10 @@ The following queries provide results that do not match those of other implement
"fifth"
]
```
Expected output:
```
[]
```
Error:
```
timeout: sending signal TERM to command ‘build/main’
Expand Down Expand Up @@ -1577,6 +1581,48 @@ The following queries provide results that do not match those of other implement
Unable to compile selector `$[?(@[1]=='b')]': Invalid array index definition “?(@[1]=='b')]”
```

- [ ] `$[?(@.a && (@.b || @.c))]`
Input:
```
[
{
"a": true
},
{
"a": true,
"b": true
},
{
"a": true,
"b": true,
"c": true
},
{
"b": true,
"c": true
},
{
"a": true,
"c": true
},
{
"c": true
},
{
"b": true
}
]
```
Expected output:
```
[{"a": true, "b": true}, {"a": true, "b": true, "c": true}, {"a": true, "c": true}]
```
Actual output:
NOT_SUPPORTED
```
Unable to compile selector `$[?(@.a && (@.b || @.c))]': Invalid array index definition “?(@.a && (@.b || @.c))]”
```

- [ ] `$[?(@==42)]`
Input:
```
Expand Down
154 changes: 154 additions & 0 deletions bug_reports/Clojure_json-path.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,26 @@ The following queries provide results that do not match those of other implement
4
```

- [ ] `$[0:3:-2]`
Input:
```
[
"first",
"second",
"third",
"forth",
"fifth"
]
```
Expected output:
```
[]
```
Actual output:
```
"first"
```

- [ ] `$[7:3:-1]`
Input:
```
Expand Down Expand Up @@ -1800,6 +1820,57 @@ The following queries provide results that do not match those of other implement
]
```

- [ ] `$[?(@.a && (@.b || @.c))]`
Input:
```
[
{
"a": true
},
{
"a": true,
"b": true
},
{
"a": true,
"b": true,
"c": true
},
{
"b": true,
"c": true
},
{
"a": true,
"c": true
},
{
"c": true
},
{
"b": true
}
]
```
Expected output:
```
[{"a": true, "b": true}, {"a": true, "b": true, "c": true}, {"a": true, "c": true}]
```
Actual output:
```
[
{
"a": true,
"b": true,
"c": true
},
{
"a": true,
"c": true
}
]
```

- [ ] `$[?()]`
Input:
```
Expand Down Expand Up @@ -2365,6 +2436,39 @@ The following queries provide results that do not match those of other implement
java.lang.Exception object must be an array.
```

- [ ] `$[?(@.length() == 4)]`
Input:
```
[
[
1,
2,
3,
4,
5
],
[
1,
2,
3,
4
],
[
1,
2,
3
]
]
```
Expected output:
```
NOT_SUPPORTED
```
Actual output:
```
[]
```

- [ ] `$[?(@.length == 4)]`
Input:
```
Expand Down Expand Up @@ -2819,6 +2923,56 @@ The following queries provide results that do not match those of other implement
null
```

- [ ] `$..`
Input:
```
[
{
"a": {
"b": "c"
}
},
[
0,
1
]
]
```
Expected output (in any order as no consensus on ordering exists):
```
NOT_SUPPORTED
```
Actual output:
```
[
0,
1,
[
0,
1
],
[
{
"a": {
"b": "c"
}
},
[
0,
1
]
],
{
"a": {
"b": "c"
}
},
{
"b": "c"
}
]
```

- [ ] `$.key..`
Input:
```
Expand Down
Loading

0 comments on commit 1fd8a4a

Please sign in to comment.