File: manpage_add_example

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 (20 lines) | stat: -rw-r--r-- 561 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# From: Jordan Metzmeier <jmetzmeier01@gmail.com>
# Subject: Add an example of how jshon can be used to create JSON
# The description of jshon includes it's ability to create JSON. Examples
# of how to do this were not present in any of the documentation
--- a/jshon.1
+++ b/jshon.1
@@ -232,6 +232,13 @@ can create json by by starting with an e
 \& jshon \-Q \-n {} \-n [] \-i data -> {"data":[]}
 .
 .Pp
+.Sh CREATING JSON
+.Nm
+can create json by passing an empty object as input:
+.Pp
+\& jshon \-s one \-i a <<< "{}"
+.
+.Pp
 .Sh AUTHORS
 .An -nosplit
 .Pp