🍺 BREW Explorer

← all formulae

jc

brew install jc v1.25.7 MIT

Serializes the output of command-line tools to structured JSON output

259
30-day installs · #2363
1.0k
90-day · #2176
2.8k
365-day · #2462
8.6k
★ GitHub stars · updated 2mo ago

Runtime dependencies

GitHub topics

bash bash-scripting cli command-line command-line-interface command-line-tool convert json linux parsers python python-library scripting serialize shell-scripting yaml

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [
    "libyaml",
    "python@3.14"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Serializes the output of command-line tools to structured JSON output",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:38:59+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "jc",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-06-18T17:00:49Z",
  "github_readme_excerpt": "[![Pypi](https://img.shields.io/pypi/v/jc.svg)](https://pypi.org/project/jc/)\n\n\u003e Check out the `jc` Python [package documentation](https://github.com/kellyjonbrazil/jc/tree/master/docs) for developers\n\n\u003e Try the `jc` [web demo](https://jc-web.onrender.com/) and [REST API](https://github.com/kellyjonbrazil/jc-restapi)\n\n\u003e `jc` is available as an\n[Ansible filter plugin](https://docs.ansible.com/ansible/latest/collections/community/general/jc_filter.html#ansible-collections-community-general-jc-filter)\nin the `community.general` collection. See this\n[blog post](https://blog.kellybrazil.com/2020/08/30/parsing-command-output-in-ansible-with-jc/)\nfor an example.\n\n# JC\nJSON Convert\n\n`jc` JSONifies the output of many CLI tools, file-types, and common strings\nfor easier parsing in scripts. See the [**Parsers**](#parsers) section for\nsupported commands, file-types, and strings.\n```bash\ndig example.com | jc --dig\n```\n```json\n[{\"id\":38052,\"opcode\":\"QUERY\",\"status\":\"NOERROR\",\"flags\":[\"qr\",\"rd\",\"ra\"],\n\"query_num\":1,\"answer_num\":1,\"authority_num\":0,\"additional_num\":1,\n\"opt_pseudosection\":{\"edns\":{\"version\":0,\"flags\":[],\"udp\":4096}},\"question\":\n{\"name\":\"example.com.\",\"class\":\"IN\",\"type\":\"A\"},\"answer\":[{\"name\":\n\"example.com.\",\"class\":\"IN\",\"type\":\"A\",\"ttl\":39049,\"data\":\"93.184.216.34\"}],\n\"query_time\":49,\"server\":\"2600:1700:bab0:d40::1#53(2600:1700:bab0:d40::1)\",\n\"when\":\"Fri Apr 16 16:09:00 PDT 2021\",\"rcvd\":56,\"when_epoch\":1618614540,\n\"when_epoch_utc\":null}]\n```\n\nThis allows further command-line processing of output with tools like `jq`\nor [`jello`](https://github.com/kellyjonbrazil/jello) by piping commands:\n```bash\n$ dig example.com | jc --dig | jq -r \u0027.[].answer[].data\u0027\n93.184.216.34\n```\n\nor using the alternative \"magic\" syntax:\n\n```bash\n$ jc dig example.com | jq -r \u0027.[].answer[].data\u0027\n93.184.216.34\n```\n\n`jc` can also be used as a python library. In this case the returned value\nwill be a python dictionary, a list of dictionaries, or even a\n[lazy iterable of dictionaries](#using-stre",
  "github_repo": "kellyjonbrazil/jc",
  "github_stars": 8627,
  "github_topics": [
    "bash",
    "bash-scripting",
    "cli",
    "command-line",
    "command-line-interface",
    "command-line-tool",
    "convert",
    "json",
    "linux",
    "parsers",
    "python",
    "python-library",
    "scripting",
    "serialize",
    "shell-scripting",
    "yaml"
  ],
  "homepage": "https://github.com/kellyjonbrazil/jc",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 259,
  "installs_365d": 2808,
  "installs_90d": 1030,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "jc",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 2363,
  "rank_365d": 2462,
  "rank_90d": 2176,
  "raw_hash": "e3176e0d37621131",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/j/jc.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": null,
  "version_stable": "1.25.7",
  "versioned_formulae": [],
  "why_use_this": null
}