{"repo":"kellyjonbrazil/jc","free":true,"listed":false,"github":"https://github.com/kellyjonbrazil/jc","clone":"git clone https://github.com/kellyjonbrazil/jc.git","description":"CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.","language":"Python","stars":8664,"topics":["parsers","json","linux","command-line","serialize","convert","scripting","shell-scripting","bash","cli"],"license":"MIT","category":"cli-tools","readme_excerpt":"Check out the jc Python package documentation for developers Try the jc web demo and REST API jc is available as an Ansible filter plugin in the community.general collection. See this blog post for an example. JC JSON Convert jc JSONifies the output of many CLI tools, file-types, and common strings for easier parsing in scripts. See the Parsers section for supported commands, file-types, and strings. This allows further command-line processing of output with tools like jq or jello by piping commands: or using the alternative \"magic\" syntax: jc can also be used as a python library. In this case the returned value will be a python dictionary, a list of dictionaries, or even a lazy iterable of dictionaries instead of JSON: For jc Python package documentation, use help('jc') , help('jc.lib') , or see the online documentation. Two representations of the data are available. The default representation uses a strict schema per parser and converts known numbers to int/float JSON values. Certain known values of None are converted to JSON null , known boolean values are converted, and, in some cases, additional semantic context fields are added. To access the raw, pre-processed JSON, use the -r cli option or the raw=True function parameter in parse() when using jc as a python library. Schemas for each parser can be found at the documentation link beside each Parser below. Release notes can be found in the Releases section on Github. Why Would Anyone Do This!? For more information on the","default_branch":null,"files":null,"tree":[],"storefront":"/r/kellyjonbrazil","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kellyjonbrazil/jc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}