Skip to content

Commit f617ad8

Browse files
committed
Update notable differences.
1 parent eb24c54 commit f617ad8

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

LICENSE.txt

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,20 @@ MIT License
22

33
Copyright (c) 2023-present James Prior <[email protected]>
44

5-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
611

7-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
814

9-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,16 +276,14 @@ This is a list of things that you might find in other JSONPath implementation th
276276
- We don't support extension functions of the form `selector.func()`.
277277
- We always return a list of matches from `jsonpath.findall()`, never a scalar value.
278278
- We do not support arithmetic in filter expression.
279-
- Python JSONPath is strictly read only. There are no update "selectors".
279+
- Python JSONPath is strictly read only. There are no update "selectors", although a Python API for working with `JSONPathMatch`s may well be added in the future.
280280

281281
And this is a list of areas where we deviate from the [IETF JSONPath draft](https://datatracker.ietf.org/doc/html/draft-ietf-jsonpath-base-11).
282282

283-
- The built-in `match()` function uses Python's standard _re_ module, without attempting to map I-Regexps to it. A closer approximation of I-Regexps could be achieved by depending on the third-party [regex](https://pypi.org/project/regex/) package.
284283
- We don't require filters that use a function extension to include a comparison operator.
285284
- Whitespace is mostly insignificant unless inside quotes.
286285
- The root token (default `$`) is optional.
287286
- Paths starting with a dot (`.`) are OK. `.thing` is the same as `$.thing`, as is `thing`, `$[thing]` and `$["thing"]`.
288-
- Nested filters are not supported.
289287

290288
And this is a list of features that are uncommon or unique to Python JSONPath.
291289

docs/syntax.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,14 @@ This is a list of things that you might find in other JSONPath implementation th
157157
- We don't support extension functions of the form `selector.func()`.
158158
- We always return a list of matches from `jsonpath.findall()`, never a scalar value.
159159
- We do not support arithmetic in filter expression.
160-
- Python JSONPath is strictly read only. There are no update "selectors".
160+
- Python JSONPath is strictly read only. There are no update "selectors", although a Python API for working with `JSONPathMatch`s may well be added in the future.
161161

162162
And this is a list of areas where we deviate from the [IETF JSONPath draft](https://datatracker.ietf.org/doc/html/draft-ietf-jsonpath-base-11).
163163

164-
- For now, the only built-in function extension is `length()`.
165164
- We don't require filters that use a function extension to include a comparison operator.
166165
- Whitespace is mostly insignificant unless inside quotes.
167166
- The root token (default `$`) is optional.
168167
- Paths starting with a dot (`.`) are OK. `.thing` is the same as `$.thing`, as is `thing`, `$[thing]` and `$["thing"]`.
169-
- Nested filters are not supported.
170168

171169
And this is a list of features that are uncommon or unique to Python JSONPath.
172170

0 commit comments

Comments
 (0)