1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2026-04-26 21:04:16 +02:00

doc update

This commit is contained in:
Kelly Brazil
2022-08-04 15:43:44 -07:00
parent 3166600ac6
commit cb3484e1ab
3 changed files with 129 additions and 27 deletions
+22 -13
View File
@@ -20,25 +20,34 @@ Usage (cli):
Usage (module):
import jc
result = jc.parse('plist', plist_command_output)
result = jc.parse('plist', plist_file_output)
Schema:
[
{
"plist": string,
"bar": boolean,
"baz": integer
}
]
{
"<key>": string/integer/float/boolean/object/array/null
}
Examples:
$ plist | jc --plist -p
[]
$ plist | jc --plist -p -r
[]
$ cat info.plist | jc --plist -p
{
"NSAppleScriptEnabled": true,
"LSMultipleInstancesProhibited": true,
"CFBundleInfoDictionaryVersion": "6.0",
"DTPlatformVersion": "GM",
"CFBundleIconFile": "GarageBand.icns",
"CFBundleName": "GarageBand",
"DTSDKName": "macosx10.13internal",
"NSSupportsAutomaticGraphicsSwitching": true,
"RevisionDate": "2018-12-03_14:10:56",
"UTImportedTypeDeclarations": [
{
"UTTypeConformsTo": [
"public.data",
"public.content"
...
}
<a id="jc.parsers.plist.parse"></a>