diff options
| author | 2021-12-23 03:09:07 +0100 | |
|---|---|---|
| committer | 2021-12-23 03:09:07 +0100 | |
| commit | 429cbc660ae14d4998715803b44c71abf0e4a339 (patch) | |
| tree | 12fe08f5dcb00a380536198bac3fffd4eb7dd19b /docs/plistutil.1 | |
| parent | 70002721443dabaa99b56301b537980e137b6249 (diff) | |
| download | libplist-429cbc660ae14d4998715803b44c71abf0e4a339.tar.gz libplist-429cbc660ae14d4998715803b44c71abf0e4a339.tar.bz2 | |
Add support for JSON format
Diffstat (limited to 'docs/plistutil.1')
| -rw-r--r-- | docs/plistutil.1 | 14 |
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 |
| 3 | plistutil \- Convert a plist FILE from binary to XML format or vice-versa | 3 | plistutil \- 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 |
| 10 | plistutil allows converting a file in Property List format from binary to XML format or vice-versa. | 10 | plistutil 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. | |||
| 18 | Output FILE to convert to. If this argument is omitted or - is passed as | 18 | Output FILE to convert to. If this argument is omitted or - is passed as |
| 19 | filename, plistutil will write to stdout. | 19 | filename, plistutil will write to stdout. |
| 20 | .TP | 20 | .TP |
| 21 | .B \-f, \-\-format [bin|xml] | 21 | .B \-f, \-\-format [bin|xml|json] |
| 22 | Force output format, regardless of input type. This is useful if the input | 22 | Force output format, regardless of input type. This is useful if the input |
| 23 | format is not known, but the output format should always be in a specific | 23 | format is not known, but the output format should always be in a specific |
| 24 | format (like xml). | 24 | format (like xml or json). |
| 25 | |||
| 26 | If omitted, XML plist data will be converted to binary and vice-versa. To | ||
| 27 | convert to/from JSON the output format needs to specified. | ||
| 25 | .TP | 28 | .TP |
| 26 | .B \-h, \-\-help | 29 | .B \-h, \-\-help |
| 27 | Prints usage information. | 30 | Prints 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 - |
| 48 | Same as before. | 51 | Same as before. |
| 49 | .TP | 52 | .TP |
| 53 | .B plistutil -i test.plist -f json | ||
| 54 | Print 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 |
| 51 | Take plist data from stdin - piped via cat - and write the output as XML | 57 | Take plist data from stdin - piped via cat - and write the output as XML |
| 52 | to stdout. | 58 | to stdout. |
