Skip to content

Commit d7a3723

Browse files
committed
docs: note about handleing of top-level arrays/objects
1 parent 6a6df64 commit d7a3723

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/syntax.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ This is a list of things that you might find in other JSONPath implementation th
183183
- We do not support arithmetic in filter expression.
184184
- We don't allow dotted array indices. An array index must be surrounded by square brackets.
185185
- Python JSONPath is strictly read only. There are no update "selectors", but we do provide methods for converting `JSONPathMatch` instances to `JSONPointer`s, and a `JSONPatch` builder API for modifying JSON-like data structures using said pointers.
186+
- We don't attempt to handle JSON documents without a top-level array or object (or equivalent Python objects).
186187

187188
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-13).
188189

0 commit comments

Comments
 (0)