File: manpage_add_example

package info (click to toggle)
jshon 20131010-3
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, stretch
  • size: 180 kB
  • ctags: 152
  • sloc: ansic: 1,706; makefile: 54
file content (20 lines) | stat: -rw-r--r-- 590 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
@@ -175,6 +175,13 @@
 I do not recommend doing this (it makes things much harder to understand) but some people golf despite the consequences.
 .
 .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