File: pr52_man.patch

package info (click to toggle)
jshon 20180209.d919aea-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 584 kB
  • sloc: ansic: 8,348; makefile: 93
file content (19 lines) | stat: -rw-r--r-- 524 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Andreas Tille <tille@debian.org>
Last-Update: 2025-02-20
Forwareded: no
Description: Document functionality added in pr52.patch

--- a/jshon.1
+++ b/jshon.1
@@ -115,6 +115,11 @@ Arrays are handled in a special manner.
 the new value, and then insert at the index.
 .Pp
 \&  jshon \-e b \-d 0 \-s q \-i 0 -> {"b":"q",false,null,"str"}
+.Pp
+.It Cm -w str
+This option will wrap the top of the stack in given key.
+.Pp
+\& echo {"a": 1, "b": 2} | jshon \-e a \-w a2 \-i a  becomes {"a": {"a2": 1},"b": 2}
 .
 .Pp
 .El