summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-12-23 03:09:07 +0100
committerGravatar Nikias Bassen2021-12-23 03:09:07 +0100
commit429cbc660ae14d4998715803b44c71abf0e4a339 (patch)
tree12fe08f5dcb00a380536198bac3fffd4eb7dd19b /docs
parent70002721443dabaa99b56301b537980e137b6249 (diff)
downloadlibplist-429cbc660ae14d4998715803b44c71abf0e4a339.tar.gz
libplist-429cbc660ae14d4998715803b44c71abf0e4a339.tar.bz2
Add support for JSON format
Diffstat (limited to 'docs')
-rw-r--r--docs/plistutil.114
1 files changed, 10 insertions, 4 deletions
diff --git a/docs/plistutil.1 b/docs/plistutil.1
index e502bd7..eb1b591 100644
--- a/docs/plistutil.1
+++ b/docs/plistutil.1
@@ -1,13 +1,13 @@
1.TH "plistutil" 1 1.TH "plistutil" 1
2.SH NAME 2.SH NAME
3plistutil \- Convert a plist FILE from binary to XML format or vice-versa 3plistutil \- Convert a plist FILE between binary, XML, and JSON format
4.SH SYNOPSIS 4.SH SYNOPSIS
5.B plistutil 5.B plistutil
6[OPTIONS] 6[OPTIONS]
7[-i FILE] 7[-i FILE]
8[-o FILE] 8[-o FILE]
9.SH DESCRIPTION 9.SH DESCRIPTION
10plistutil allows converting a file in Property List format from binary to XML format or vice-versa. 10plistutil allows converting a Property List file between binary, XML, and JSON format.
11.SH OPTIONS 11.SH OPTIONS
12.TP 12.TP
13.B \-i, \-\-infile FILE 13.B \-i, \-\-infile FILE
@@ -18,10 +18,13 @@ filename, plistutil will read from stdin.
18Output FILE to convert to. If this argument is omitted or - is passed as 18Output FILE to convert to. If this argument is omitted or - is passed as
19filename, plistutil will write to stdout. 19filename, plistutil will write to stdout.
20.TP 20.TP
21.B \-f, \-\-format [bin|xml] 21.B \-f, \-\-format [bin|xml|json]
22Force output format, regardless of input type. This is useful if the input 22Force output format, regardless of input type. This is useful if the input
23format is not known, but the output format should always be in a specific 23format is not known, but the output format should always be in a specific
24format (like xml). 24format (like xml or json).
25
26If omitted, XML plist data will be converted to binary and vice-versa. To
27convert to/from JSON the output format needs to specified.
25.TP 28.TP
26.B \-h, \-\-help 29.B \-h, \-\-help
27Prints usage information. 30Prints usage information.
@@ -47,6 +50,9 @@ Print test.plist as XML plist, regardless of the input format.
47.B plistutil -i test.plist -f xml -o - 50.B plistutil -i test.plist -f xml -o -
48Same as before. 51Same as before.
49.TP 52.TP
53.B plistutil -i test.plist -f json
54Print test.plist as JSON plist, regardless of the input format.
55.TP
50.B cat test.plist |plistutil -f xml 56.B cat test.plist |plistutil -f xml
51Take plist data from stdin - piped via cat - and write the output as XML 57Take plist data from stdin - piped via cat - and write the output as XML
52to stdout. 58to stdout.