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
|