summaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-07-04 15:28:09 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-10-11 14:07:38 +0200
commit9cebb234b187b468a1d7165e4505403386b45226 (patch)
treed0eb66c308cbf5240e11f416f745318a4a544bdd /man
parentMerge pull request #10334 from keszybz/nomempool (diff)
downloadsystemd-9cebb234b187b468a1d7165e4505403386b45226.tar.xz
systemd-9cebb234b187b468a1d7165e4505403386b45226.zip
busctl: add a --json= output mode
A new switch "-j" or "--json=" is added which transforms dbus marshalling into json. This is extremely useful in combination with tools such as "jq" to process bus calls further.
Diffstat (limited to 'man')
-rw-r--r--man/busctl.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/man/busctl.xml b/man/busctl.xml
index 5154c80efe..539ef6c645 100644
--- a/man/busctl.xml
+++ b/man/busctl.xml
@@ -144,6 +144,28 @@
</varlistentry>
<varlistentry>
+ <term><option>--json=</option><replaceable>MODE</replaceable></term>
+
+ <listitem>
+ <para>When used with the <command>call</command> or <command>get-property</command> command, shows output
+ formatted as JSON. Expects one of <literal>short</literal> (for the shortest possible output without any
+ redundant whitespace or line breaks) or <literal>pretty</literal> (for a pretty version of the same, with
+ indentation and line breaks). Note that transformation from D-Bus marshalling to JSON is done in a loss-less
+ way, which means type information is embedded into the JSON object tree.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><option>-j</option></term>
+
+ <listitem>
+ <para>Equivalent to <option>--json=pretty</option> when invoked interactively from a terminal. Otherwise
+ equivalent to <option>--json=short</option>, in particular when the output is piped to some other
+ program.</para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><option>--expect-reply=</option><replaceable>BOOL</replaceable></term>
<listitem>