Skip to content

Commit 465bd27

Browse files
committed
Deployed 57541b0 with MkDocs version: 1.5.3
1 parent 612b5cf commit 465bd27

4 files changed

Lines changed: 19 additions & 16 deletions

File tree

‎search/search_index.json‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎sitemap.xml‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,62 +2,62 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://jg-rp.github.io/python-jsonpath/</loc>
5-
<lastmod>2024-03-07</lastmod>
5+
<lastmod>2024-03-12</lastmod>
66
<changefreq>daily</changefreq>
77
</url>
88
<url>
99
<loc>https://jg-rp.github.io/python-jsonpath/advanced/</loc>
10-
<lastmod>2024-03-07</lastmod>
10+
<lastmod>2024-03-12</lastmod>
1111
<changefreq>daily</changefreq>
1212
</url>
1313
<url>
1414
<loc>https://jg-rp.github.io/python-jsonpath/api/</loc>
15-
<lastmod>2024-03-07</lastmod>
15+
<lastmod>2024-03-12</lastmod>
1616
<changefreq>daily</changefreq>
1717
</url>
1818
<url>
1919
<loc>https://jg-rp.github.io/python-jsonpath/async/</loc>
20-
<lastmod>2024-03-07</lastmod>
20+
<lastmod>2024-03-12</lastmod>
2121
<changefreq>daily</changefreq>
2222
</url>
2323
<url>
2424
<loc>https://jg-rp.github.io/python-jsonpath/cli/</loc>
25-
<lastmod>2024-03-07</lastmod>
25+
<lastmod>2024-03-12</lastmod>
2626
<changefreq>daily</changefreq>
2727
</url>
2828
<url>
2929
<loc>https://jg-rp.github.io/python-jsonpath/custom_api/</loc>
30-
<lastmod>2024-03-07</lastmod>
30+
<lastmod>2024-03-12</lastmod>
3131
<changefreq>daily</changefreq>
3232
</url>
3333
<url>
3434
<loc>https://jg-rp.github.io/python-jsonpath/exceptions/</loc>
35-
<lastmod>2024-03-07</lastmod>
35+
<lastmod>2024-03-12</lastmod>
3636
<changefreq>daily</changefreq>
3737
</url>
3838
<url>
3939
<loc>https://jg-rp.github.io/python-jsonpath/functions/</loc>
40-
<lastmod>2024-03-07</lastmod>
40+
<lastmod>2024-03-12</lastmod>
4141
<changefreq>daily</changefreq>
4242
</url>
4343
<url>
4444
<loc>https://jg-rp.github.io/python-jsonpath/pointers/</loc>
45-
<lastmod>2024-03-07</lastmod>
45+
<lastmod>2024-03-12</lastmod>
4646
<changefreq>daily</changefreq>
4747
</url>
4848
<url>
4949
<loc>https://jg-rp.github.io/python-jsonpath/query/</loc>
50-
<lastmod>2024-03-07</lastmod>
50+
<lastmod>2024-03-12</lastmod>
5151
<changefreq>daily</changefreq>
5252
</url>
5353
<url>
5454
<loc>https://jg-rp.github.io/python-jsonpath/quickstart/</loc>
55-
<lastmod>2024-03-07</lastmod>
55+
<lastmod>2024-03-12</lastmod>
5656
<changefreq>daily</changefreq>
5757
</url>
5858
<url>
5959
<loc>https://jg-rp.github.io/python-jsonpath/syntax/</loc>
60-
<lastmod>2024-03-07</lastmod>
60+
<lastmod>2024-03-12</lastmod>
6161
<changefreq>daily</changefreq>
6262
</url>
6363
</urlset>

‎sitemap.xml.gz‎

-1 Bytes
Binary file not shown.

‎syntax/index.html‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,6 @@ <h2 id="notable-differences">Notable differences</h2>
10771077
<li>We do not support arithmetic in filter expression.</li>
10781078
<li>We don't allow dotted array indices. An array index must be surrounded by square brackets.</li>
10791079
<li>Python JSONPath is strictly read only. There are no update "selectors", but we do provide methods for converting <code>JSONPathMatch</code> instances to <code>JSONPointer</code>s, and a <code>JSONPatch</code> builder API for modifying JSON-like data structures using said pointers.</li>
1080-
<li>We don't attempt to handle JSON documents without a top-level array or object (or equivalent Python objects).</li>
10811080
</ul>
10821081
<p>And this is a list of areas where we deviate from <a href="https://datatracker.ietf.org/doc/html/rfc9535">RFC 9535</a>.</p>
10831082
<ul>
@@ -1087,17 +1086,21 @@ <h2 id="notable-differences">Notable differences</h2>
10871086
<li>We don't require the recursive descent segment to have a selector. <code>$..</code> is equivalent to <code>$..*</code>.</li>
10881087
<li>We support explicit comparisons to <code>undefined</code> as well as implicit existence tests.</li>
10891088
<li>Float literals without a fractional digit are OK. <code>1.</code> is equivalent to <code>1.0</code>.</li>
1090-
<li>We treat literals (such as <code>true</code> and <code>false</code>) as valid "basic" expressions. So <code>$[?true || false]</code> does not raise a syntax error, which is and invalid query according to RFC 9535.</li>
1089+
<li>We treat literals (such as <code>true</code> and <code>false</code>) as valid "basic" expressions. For example, <code>$[?true || false]</code>, without an existence test or comparison either side of logical <em>or</em>, does not raise a syntax error.</li>
1090+
<li>By default, <code>and</code> is equivalent to <code>&amp;&amp;</code> and <code>or</code> is equivalent to <code>||</code>.</li>
1091+
<li><code>none</code> and <code>nil</code> are aliases for <code>null</code>.</li>
1092+
<li><code>null</code> (and its aliases), <code>true</code> and <code>false</code> can start with an upper or lower case letter.</li>
10911093
</ul>
10921094
<p>And this is a list of features that are uncommon or unique to Python JSONPath.</p>
10931095
<ul>
10941096
<li>We support membership operators <code>in</code> and <code>contains</code>, plus list/array literals.</li>
10951097
<li><code>|</code> is a union operator, where matches from two or more JSONPaths are combined. This is not part of the Python API, but built-in to the JSONPath syntax.</li>
10961098
<li><code>&amp;</code> is an intersection operator, where we exclude matches that don't exist in both left and right paths. This is not part of the Python API, but built-in to the JSONPath syntax.</li>
10971099
<li><code>#</code> is the current key/property or index identifier when filtering a mapping or sequence.</li>
1098-
<li><code>_</code> is a filter context selector. With usage similar to <code>$</code> and <code>@</code>, <code>_</code> exposes arbitrary data from the <code>filter_context</code> argument to <code>findall()</code> and <code>finditer()</code>.</li>
1100+
<li><code>_</code> is a filter context identifier. With usage similar to <code>$</code> and <code>@</code>, <code>_</code> exposes arbitrary data from the <code>filter_context</code> argument to <code>findall()</code> and <code>finditer()</code>.</li>
10991101
<li><code>~</code> is a "keys" or "properties" selector.</li>
11001102
<li><code>^</code> is a "fake root" identifier. It is equivalent to <code>$</code>, but wraps the target JSON document in a single-element array, so the root value can be conditionally selected with a filter selector.</li>
1103+
<li><code>=~</code> is the the regex match operator, matching a value to a JavaScript-style regex literal.</li>
11011104
</ul>
11021105

11031106

0 commit comments

Comments
 (0)