# Installer jsonfmt avec Homebrew, Nix

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de jsonfmt pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:jsonfmt
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install jsonfmt
```

  Preuve: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#jsonfmt
```

  Preuve: nixpkgs package indexes: pkgs/by-name/js/jsonfmt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Faits du paquet

- **Clé du paquet:** brew:jsonfmt
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/jsonfmt>
- **Version:** 0.5.2
- **Résumé source:** Like gofmt, but for JSON files
- **Page d'accueil:** <https://github.com/caarlos0/jsonfmt>
- **Dépôt:** <https://github.com/caarlos0/jsonfmt>
- **Licence:** MIT
- **Archive source:** <https://github.com/caarlos0/jsonfmt/archive/refs/tags/v0.5.2.tar.gz>
- **Dernière mise à jour:** 2026-07-26T04:08:08+02:00
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- jsonfmt (cli)
- jsonfmt (alias)

## Dépendances de compilation

- go

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 0.5.2
- gestionnaire mis à jour: 2026-07-26
- données locales: OK
- dépôt amont: https://github.com/caarlos0/jsonfmt
- dernière version détectée: v0.5.2 (à jour)
## Historique du projet et usages

jsonfmt is a Go command-line formatter for JSON files, explicitly modeled as `gofmt` for JSON.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 2018-11-07: The GitHub repository was created.
- 2018-11-12: The author published the `Keeping json files formatted` post.
- 2018-11-12: The blog documented Homebrew, Snapcraft, Docker, deb/rpm, and manual installation routes.
- 2026-06-02: GitHub repository metadata showed ongoing repository activity.

### Related projects

- jsonfmt is related to gofmt by naming and workflow, to jq and Prettier as alternative JSON formatting options, and to Go's `encoding/json` package through its implementation approach.

### Sources

- <https://api.github.com/repos/caarlos0/jsonfmt>
- <https://carlosbecker.com/posts/jsonfmt/>
- <https://formulae.brew.sh/formula/jsonfmt>
- <https://github.com/caarlos0/jsonfmt>
- <https://github.com/caarlos0/jsonfmt/releases>


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Détails de la base source

- **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:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Autres enregistrements de gestionnaires de paquets

- Nix - jsonfmt: normalized package name match | nixpkgs package indexes: pkgs/by-name/js/jsonfmt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Liens liés

- [Source-control packages](https://pkg.so/fr/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/fr/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/fr/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/fr/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/fr/brew/go/) - Build dependency declared by Homebrew.
- [jsonpp](https://pkg.so/fr/brew/jsonpp/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, json.
- [pgformatter](https://pkg.so/fr/brew/pgformatter/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter.
- [rubyfmt](https://pkg.so/fr/brew/rubyfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter.
- [snakefmt](https://pkg.so/fr/brew/snakefmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter.
- [sql-formatter](https://pkg.so/fr/brew/sql-formatter/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter.
- [odinfmt](https://pkg.so/fr/brew/odinfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter.
- [asmfmt](https://pkg.so/fr/brew/asmfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter.
- [jsonlint](https://pkg.so/fr/brew/jsonlint/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, json.
- [fracturedjson](https://pkg.so/fr/brew/fracturedjson/) - Both packages work with overlapping file formats or content types. Shared terms: but, cli, developer, developer-tools, formatter.

## Combined YAML source

View the package source record on GitHub. [combined/jsonfmt.yml](https://github.com/mxcl/pkgdb/blob/main/combined/jsonfmt.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
