mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
Update website
This commit is contained in:
@@ -2541,8 +2541,8 @@ values.</p>
|
||||
<p><code>paths</code> outputs the paths to all the elements in its input
|
||||
(except it does not output the empty list, representing .
|
||||
itself).</p>
|
||||
<p><code>paths(f)</code> outputs the paths to any values for which <code>f</code> is true.
|
||||
That is, <code>paths(numbers)</code> outputs the paths to all numeric
|
||||
<p><code>paths(f)</code> outputs the paths to any values for which <code>f</code> is <code>true</code>.
|
||||
That is, <code>paths(type == "number")</code> outputs the paths to all numeric
|
||||
values.</p>
|
||||
|
||||
|
||||
@@ -2569,7 +2569,7 @@ values.</p>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<tr><th></th><td class="jqprogram">jq '[paths(scalars)]'</td></tr>
|
||||
<tr><th></th><td class="jqprogram">jq '[paths(type == "number")]'</td></tr>
|
||||
<tr><th>Input</th><td>[1,[[],{"a":2}]]</td></tr>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user