@ -56,6 +56,8 @@ The ``cli_parse`` module includes the following cli_parsing plugins:
A library for semi-structured text parsing using templates, with added capabilities to simplify the process
A library for semi-structured text parsing using templates, with added capabilities to simplify the process
``pyats``
``pyats``
Uses the parsers included with the Cisco Test Automation & Validation Solution
Uses the parsers included with the Cisco Test Automation & Validation Solution
``jc``
A python module that converts the output of dozens of popular Linux/UNIX/macOS/Windows commands and file types to python dictionaries or lists of dictionaries. Note: this filter plugin can be found in the ``community.general`` collection.
``json``
``json``
Converts JSON output at the CLI to an Ansible native data structure
Converts JSON output at the CLI to an Ansible native data structure
@ -583,6 +585,29 @@ The task sets the follow fact as the ``interfaces`` fact for the host:
state: up
state: up
Parsing with JC
-----------------
JC is a python library that converts the output of dozens of common Linux/UNIX/macOS/Windows command-line tools and file types to python dictionaries or lists of dictionaries for easier parsing. JC is available as a filter plugin in the ``community.general`` collection.
The following is an example using JC to parse the output of the ``dig`` command: