Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. JSON
  3. jc

jc

MITPythonv1.25.7

A CLI tool and Python library that converts command output, files, and strings to JSON, YAML, or dictionaries for easier parsing.

GitHubGitHub
8.6k stars248 forks0 contributors

What is jc?

jc is a command-line tool and Python library that converts the output of command-line utilities, common file formats, and strings into JSON, YAML, or Python dictionaries. It solves the problem of parsing unstructured command output by providing a standardized, machine-readable format that integrates seamlessly with tools like jq and automation scripts.

Target Audience

System administrators, DevOps engineers, and developers who work with command-line tools and need to parse or automate output in scripts, Ansible playbooks, or monitoring pipelines.

Value Proposition

jc offers a comprehensive set of parsers for over 150 commands and formats, supports both streaming and batch processing, and works as both a CLI tool and a Python library, making it uniquely versatile for automation and data transformation tasks.

Overview

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.

Use Cases

Best For

  • Parsing command output in Bash scripts for further processing with jq
  • Converting system monitoring commands (like `ps`, `netstat`, `df`) into JSON for logging or dashboards
  • Integrating command output into Ansible, SaltStack, or Nornir automation workflows
  • Transforming log files (e.g., CSV, syslog) into structured data for analysis
  • Streaming real-time command output (e.g., `ping`, `top`) as JSON Lines
  • Simplifying ad-hoc data extraction from CLI tools without writing custom parsers

Not Ideal For

  • Systems where CLI tools already provide native JSON or structured output options (e.g., `docker inspect --format json`)
  • High-performance, low-latency pipelines where parsing overhead is critical and raw text processing is preferred
  • Environments that cannot install Python or where binary dependencies are restricted, such as minimal container images
  • Parsing output from unsupported or custom commands without the ability to write a Python plugin

Pros & Cons

Pros

Extensive Parser Library

Supports over 150 command outputs, file types, and strings, providing a wide range of pre-built parsers for common use cases, as detailed in the parsers table.

CLI and Library Flexibility

Works as both a command-line tool for piping and a Python library for programmatic parsing, enabling seamless integration into scripts and applications like Ansible.

Structured Type Conversion

Converts output to JSON with proper types (int, float, boolean, null) and a strict schema per parser, improving data reliability for automation tasks.

Streaming Capabilities

Offers streaming parsers that output JSON Lines for memory-efficient processing of large data streams, such as from `ping` or `top` commands, with options for unbuffered output.

Cons

Platform-Specific Limitations

Many parsers are only compatible with specific operating systems (e.g., Linux, macOS), and running on unsupported platforms requires suppressing warnings or may not work correctly, as noted in the compatibility section.

Performance Overhead

Adds parsing latency, especially for streaming parsers where unbuffered output can be slower; the README admits that unbuffered output is not ideal for large data streams.

Custom Parser Complexity

For unsupported commands, users must write Python plugin modules, which requires programming knowledge and adds maintenance burden, as outlined in the parser plugins section.

Frequently Asked Questions

Quick Stats

Stars8,649
Forks248
Contributors0
Open Issues34
Last commit1 month ago
CreatedSince 2019

Tags

#python-library#shell-scripting#serialize#convert#cli-tool#json-converter#bash#scripting#cli#linux#data-transformation#command-line#json#command-line-parsing#automation

Built With

P
Python

Included in

Shell36.8kJSON1.5k
Auto-fetched 17 hours ago

Related Projects

jqjq

Command-line JSON processor

Stars35,273
Forks1,812
Last commit5 days ago
jqjq

Command-line JSON processor

Stars35,273
Forks1,812
Last commit5 days ago
fxfx

Terminal JSON viewer & processor

Stars20,544
Forks483
Last commit2 months ago
yqyq

yq is a portable command-line YAML, JSON, XML, CSV, TOML, HCL and properties processor

Stars15,737
Forks799
Last commit15 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub