The jc Python package provides documentation for developers and offers a web demo and REST API for testing. It can be used as an Ansible filter plugin and is also compatible with the regex2json package. The main purpose of jc is to convert the output of various CLI tools, file types, and strings into JSON format for easier parsing in scripts. The supported commands, file types, and strings can be found in the Parsers section. jc can also be used as a Python library, returning dictionaries or lists of dictionaries instead of JSON. It offers various options for customization, including line slicing and color customization.
https://github.com/kellyjonbrazil/jc