macOS
brew install jsonfmtlocal Homebrew formula metadata
brew
Like gofmt, but for JSON files. Version 0.5.2 via Homebrew; verified from local package data.
install
brew install jsonfmtlocal Homebrew formula metadata
nix profile install nixpkgs#jsonfmtnixpkgs package indexes · pkgs/by-name/js/jsonfmt/package.nix · source: api.github.com
overview
Like gofmt, but for JSON files
history
jsonfmt is a Go command-line formatter for JSON files, explicitly modeled as `gofmt` for JSON.
Carlos Becker introduced jsonfmt in a November 12, 2018 blog post after needing consistent JSON formatting for a Chef-heavy project. The post describes rejecting heavier or awkward alternatives, then arriving at Go's standard `json.Indent` as the simple implementation core.
The GitHub repository was created in November 2018 and packages the formatter as a small static CLI with release artifacts for several installation paths.
Adoption is practical and small-scale: Homebrew, Docker, apt/yum repository instructions, deb/rpm packages, and manual binaries are documented by the project. The intended users are teams that want JSON formatting in CI or pre-commit workflows without pulling in a larger JavaScript formatter stack.
The README documents `jsonfmt` for checking and `jsonfmt -w` for rewriting files. Becker's blog describes using `jsonfmt -w` locally and plain `jsonfmt` in CI so formatting drift fails the build.
jsonfmt is notable as a minimal native alternative to general-purpose formatters. Its charm is that it mostly packages a standard-library behavior into a predictable CLI, which is exactly the sort of small tool package managers are good at preserving.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
jsonfmt | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/caarlos0/jsonfmt
install metadata
| Package key | brew:jsonfmt |
|---|---|
| Version | 0.5.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/jsonfmt |
| Homepage | https://github.com/caarlos0/jsonfmt |
| Repository | https://github.com/caarlos0/jsonfmt |
| Upstream docs | https://github.com/caarlos0/jsonfmt#readme |
| License | MIT |
| Source archive | https://github.com/caarlos0/jsonfmt/archive/refs/tags/v0.5.2.tar.gz |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | jsonfmt |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
jsonfmt
nix profile install nixpkgs#jsonfmtsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.