I should add that, when used as a library, JC actually returns a Dict or List of Dicts, not JSON, but can easily convert to JSON before sending to the end-user, if needed.
On Wednesday, July 29, 2020 at 5:15:40 PM UTC-7, Kelly Brazil wrote: > > Hi everyone! > > I'm not a day-to-day user of Ansible, but I am the developer of a tool > called JC that JSONifies the output of many commands and file-types and I > got some feedback that it might be good to integrate JC into Ansible as a > plugin so admins can execute arbitrary commands on the remote devices and > receive structured data back. > > I'm reading the dev docs and it looks like something like this would be a > Filter Plugin. Is that correct? > > JC is written in Python (only supports Python 3.6+). JC supports 55 > command and file-type parsers that run on Linux, macOS, and FreeBSD. > > Is this something that would have any real-world use-cases? I heard a > use-case would be for gathering data on devices that don't have Python > installed on them since the filter would be run on the controller. Would it > be relatively simple to wrap JC into the appropriate plugin type? > > https://github.com/kellyjonbrazil/jc > > I'm happy to start working on this, but want to make sure I'm barking up > the right tree. > > Thanks, > Kelly > -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-devel/6083c89a-cbe4-42df-84c3-f19a877d99f2o%40googlegroups.com.