Skip to content

Commit 0efce39

Browse files
committed
Deployed 4ff9498 with MkDocs version: 1.4.3
1 parent 8b2bf95 commit 0efce39

6 files changed

Lines changed: 19 additions & 30 deletions

File tree

‎advanced/index.html‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -389,13 +389,6 @@
389389
Custom Environments
390390
</a>
391391

392-
</li>
393-
394-
<li class="md-nav__item">
395-
<a href="#undefined" class="md-nav__link">
396-
Undefined
397-
</a>
398-
399392
</li>
400393

401394
</ul>
@@ -643,13 +636,6 @@
643636
Custom Environments
644637
</a>
645638

646-
</li>
647-
648-
<li class="md-nav__item">
649-
<a href="#undefined" class="md-nav__link">
650-
Undefined
651-
</a>
652-
653639
</li>
654640

655641
</ul>
@@ -771,8 +757,6 @@ <h3 id="compile-time-validation">Compile Time Validation</h3>
771757
<p>It should return an argument list, either the same as the input argument list, or a modified version of it. See the implementation of the built-in <a href="https://github.com/jg-rp/python-jsonpath/blob/main/jsonpath/function_extensions/match.py"><code>match</code> function</a> for an example.</p>
772758
<h2 id="custom-environments">Custom Environments</h2>
773759
<p>TODO:</p>
774-
<h2 id="undefined">Undefined</h2>
775-
<p>TODO:</p>
776760

777761

778762

‎functions/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ <h2 id="isinstance"><code>isinstance()</code></h2>
678678
<tbody>
679679
<tr>
680680
<td>UNDEFINED</td>
681-
<td>"undefined"</td>
681+
<td>"undefined", "missing"</td>
682682
</tr>
683683
<tr>
684684
<td>None</td>

‎search/search_index.json‎

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

‎sitemap.xml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,47 @@
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>2023-05-17</lastmod>
5+
<lastmod>2023-05-19</lastmod>
66
<changefreq>daily</changefreq>
77
</url>
88
<url>
99
<loc>https://jg-rp.github.io/python-jsonpath/advanced/</loc>
10-
<lastmod>2023-05-17</lastmod>
10+
<lastmod>2023-05-19</lastmod>
1111
<changefreq>daily</changefreq>
1212
</url>
1313
<url>
1414
<loc>https://jg-rp.github.io/python-jsonpath/api/</loc>
15-
<lastmod>2023-05-17</lastmod>
15+
<lastmod>2023-05-19</lastmod>
1616
<changefreq>daily</changefreq>
1717
</url>
1818
<url>
1919
<loc>https://jg-rp.github.io/python-jsonpath/async/</loc>
20-
<lastmod>2023-05-17</lastmod>
20+
<lastmod>2023-05-19</lastmod>
2121
<changefreq>daily</changefreq>
2222
</url>
2323
<url>
2424
<loc>https://jg-rp.github.io/python-jsonpath/custom_api/</loc>
25-
<lastmod>2023-05-17</lastmod>
25+
<lastmod>2023-05-19</lastmod>
2626
<changefreq>daily</changefreq>
2727
</url>
2828
<url>
2929
<loc>https://jg-rp.github.io/python-jsonpath/exceptions/</loc>
30-
<lastmod>2023-05-17</lastmod>
30+
<lastmod>2023-05-19</lastmod>
3131
<changefreq>daily</changefreq>
3232
</url>
3333
<url>
3434
<loc>https://jg-rp.github.io/python-jsonpath/functions/</loc>
35-
<lastmod>2023-05-17</lastmod>
35+
<lastmod>2023-05-19</lastmod>
3636
<changefreq>daily</changefreq>
3737
</url>
3838
<url>
3939
<loc>https://jg-rp.github.io/python-jsonpath/quickstart/</loc>
40-
<lastmod>2023-05-17</lastmod>
40+
<lastmod>2023-05-19</lastmod>
4141
<changefreq>daily</changefreq>
4242
</url>
4343
<url>
4444
<loc>https://jg-rp.github.io/python-jsonpath/syntax/</loc>
45-
<lastmod>2023-05-17</lastmod>
45+
<lastmod>2023-05-19</lastmod>
4646
<changefreq>daily</changefreq>
4747
</url>
4848
</urlset>

‎sitemap.xml.gz‎

0 Bytes
Binary file not shown.

‎syntax/index.html‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -810,14 +810,19 @@ <h3 id="filters-expression">Filters (<code>[?EXPRESSION]</code>)</h3>
810810
<p><code>=~</code> matches the left value with a regular expression literal. Regular expressions use a syntax similar to that found in JavaScript, where the pattern to match is surrounded by slashes, optionally followed by flags.</p>
811811
<div class="language-text highlight"><pre><span></span><code><span id="__span-20-1"><a id="__codelineno-20-1" name="__codelineno-20-1" href="#__codelineno-20-1"></a>$..products[?(@.description =~ /.*trainers/i)]
812812
</span></code></pre></div>
813-
<p>Filters can use <a href="../functions/">function extensions</a> too.</p>
813+
<p>Filter expressions can call predefined <a href="../functions/">function extensions</a> too.</p>
814+
<div class="language-text highlight"><pre><span></span><code><span id="__span-21-1"><a id="__codelineno-21-1" name="__codelineno-21-1" href="#__codelineno-21-1"></a>$.categories[?count(@.products.*) &gt;= 2]
815+
</span></code></pre></div>
816+
<p><code>undefined</code> can be used to filter on the absence of a key/property or an undefined value returned from a filter function. <code>missing</code> is an alias for <code>undefined</code>.</p>
817+
<div class="language-text highlight"><pre><span></span><code><span id="__span-22-1"><a id="__codelineno-22-1" name="__codelineno-22-1" href="#__codelineno-22-1"></a>$..products[[email protected]_price == undefined]
818+
</span></code></pre></div>
814819
<h3 id="union-and-intersection">Union (<code>|</code>) and intersection (<code>&amp;</code>)</h3>
815820
<p>Union (<code>|</code>) and intersection (<code>&amp;</code>) are similar to Python's set operations, but we don't dedupe the matches (matches will often contain unhashable objects).</p>
816821
<p>The <code>|</code> operator combines matches from two or more paths. This example selects a single list of all prices, plus the price cap as the last element.</p>
817-
<div class="language-text highlight"><pre><span></span><code><span id="__span-21-1"><a id="__codelineno-21-1" name="__codelineno-21-1" href="#__codelineno-21-1"></a>$..products.*.price | $.price_cap
822+
<div class="language-text highlight"><pre><span></span><code><span id="__span-23-1"><a id="__codelineno-23-1" name="__codelineno-23-1" href="#__codelineno-23-1"></a>$..products.*.price | $.price_cap
818823
</span></code></pre></div>
819824
<p>The <code>&amp;</code> operator produces matches that are common to both left and right paths. This example would select the list of products that are common to both the "footwear" and "headwear" categories.</p>
820-
<div class="language-text highlight"><pre><span></span><code><span id="__span-22-1"><a id="__codelineno-22-1" name="__codelineno-22-1" href="#__codelineno-22-1"></a>$.categories[?(@.name == &#39;footwear&#39;)].products.* &amp; $.categories[?(@.name == &#39;headwear&#39;)].products.*
825+
<div class="language-text highlight"><pre><span></span><code><span id="__span-24-1"><a id="__codelineno-24-1" name="__codelineno-24-1" href="#__codelineno-24-1"></a>$.categories[?(@.name == &#39;footwear&#39;)].products.* &amp; $.categories[?(@.name == &#39;headwear&#39;)].products.*
821826
</span></code></pre></div>
822827
<p>Note that <code>|</code> and <code>&amp;</code> are not allowed inside filter expressions.</p>
823828
<h2 id="notable-differences">Notable differences</h2>

0 commit comments

Comments
 (0)