macOS
brew install ojlocal Homebrew formula metadata
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de oj pour les workflows d'agents IA.
installation
brew install ojlocal Homebrew formula metadata
aperçu
JSON parser and visualization tool
historique
The Homebrew `oj` package installs the `oj` command from OjG, short for Optimized JSON for Go. OjG is a Go JSON toolkit with a fast parser, validator, writer, JSONPath implementation, generic JSON data model, SEN parser, and command-line JSON filtering/visualization tool.
OjG was created by Peter Ohler, author of the older Ruby `oj` gem and C `ojc` parser. The repository was created on 2020-04-12. Its design document says the project began from the idea of building a fast JSON parser, generic data model, and full JSONPath implementation for Go, informed by Ohler's earlier JSON parser work.
The project architecture split functionality into packages such as `oj` for parsing, `jp` for JSONPath, `gen` for generic JSON node types, `alt`, `asm`, `sen`, and later `discover`. The `oj` command wraps those libraries for shell use: filtering and extracting with JSONPath, sorting, reformatting, discovering JSON in documents, and colorizing output.
The changelog shows steady evolution after the early releases. Version 1.10.0 in 2021 added a tokenizing callback parser; later releases added path matching, match handlers, script function registration, JSON discovery, and compatibility fixes while keeping semantic versioning.
OjG is niche but visible in Go JSON-performance circles. The GitHub API reported 950 stars and 53 forks, while Homebrew's 2026-07-01 formula API reported 194 installs over 365 days for the CLI package. Its appeal is strongest where developers want JSONPath over arbitrary JSON-like data or a command-line JSON filter with Go-native implementation details.
The README positions OjG against Go's standard `encoding/json` package through parser, reader, validator, and writer benchmarks, with benchmark links and a separate comparison repository. That performance framing is the main adoption hook.
Go developers import packages such as `github.com/ohler55/ojg/oj` for parsing and validation, `jp` for JSONPath expressions, and `gen` for type-safe generic data. CLI users install `github.com/ohler55/ojg/cmd/oj` or `brew install oj` to query and format JSON from files and streams.
The parser can process a single JSON document or multiple JSON elements, and options allow comments in JSON. The command-line tool uses JSONPath expressions for filtering, extraction, sorting, reformatting, discovery, and colorized output.
The package is a good example of a name collision resolved by package-manager context: Homebrew's `oj` is not the older Ruby gem, but the Go command from OjG. Its upstream project still deliberately links the Go implementation to Ohler's Ruby `Oj` and C `OjC` lineage.
For maintainers, `oj` is a compact Go CLI package with no runtime dependencies in Homebrew, but it carries a rich upstream library surface. The formula's distinction between the CLI name `oj` and upstream module `ojg` is the kind of metadata wrinkle package nerds notice.
posture de sécurité
narrow executable package without higher-risk signals.
risque vert · confiance faible · appliance
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
exécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
oj | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/ohler55/ojg
métadonnées d'installation
| Clé du paquet | brew:oj |
|---|---|
| Version | 1.28.2 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/oj |
| Page d'accueil | https://github.com/ohler55/ojg |
| Dépôt | https://github.com/ohler55/ojg |
| Docs amont | https://github.com/ohler55/ojg#readme |
| Licence | MIT |
| Archive source | https://github.com/ohler55/ojg/archive/refs/tags/v1.28.2.tar.gz |
| Dernière mise à jour | 2026-07-06T04:50:51Z |
| Pulse | updated |
| Dépendances de compilation | go |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | oj |
| 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 |
|
piste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.