Skip to content

Commit 85bbbb6

Browse files
committed
commiting to
1 parent 53abc9a commit 85bbbb6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

jsonrange.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ <h2>OPTIONS</h2>
5454
-input read JSON from file
5555
-l display license
5656
-length return the number of keys or values
57+
-last return the index of the last element
5758
-limit limit the number of items output
5859
-p range on given dot path
5960
-v display version
@@ -95,6 +96,16 @@ <h2>EXAMPLES</h2>
9596
<pre><code> 3
9697
</code></pre>
9798

99+
<p>Checking the last element index of a an array</p>
100+
101+
<pre><code> jsonrange -last '[&quot;one&quot;,&quot;two&quot;,&quot;three&quot;]'
102+
</code></pre>
103+
104+
<p>would yield</p>
105+
106+
<pre><code> 2
107+
</code></pre>
108+
98109
<p>Limitting the number of items returned</p>
99110

100111
<pre><code> jsonrange -limit 2 '[1,2,3,4,5]'

0 commit comments

Comments
 (0)