4 ms·
On linux systems, I was thinking that it would be great if there was a dbus wrapper that outputs all data as json by default. As many things are exposed on dbu
by jiehong 3y ago
On linux systems, I was thinking that it would be great if there was a dbus wrapper that outputs all data as json by default.
As many things are exposed on dbus (like systemd units, timers, services, etc), and busctl [0] has a --json output.
We could have a dbus-services, or dbus-timers, etc to retrieve that on dbus and emit json.
If most things were on dbus, one could have access to almost everything on the system as json directly, while talking to the underlying implementation of most cli by default.
I suppose something similar could be done on MacOS with launchctl and others (I don't know much about MacOS, though).
[0]: https://www.man7.org/linux/man-pages/man1/busctl.1.html https://www.man7.org/linux/man-pages/man1/busctl.1.html