pkg.soopen package index

brew / 順位 7188

oj を Homebrew でインストール

oj のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install oj

local Homebrew formula metadata

概要

パッケージ概要

JSON parser and visualization tool

コマンドとエイリアス

  • oj

履歴

プロジェクトの歴史と使われ方

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.

タイムライン

  • 2020-04-12: the `ohler55/ojg` repository was created.
  • 2021-04-22: version 1.10.0 added the tokenizing callback parser.
  • 2023-10-03: version 1.19.4 updated the command version and referenced the Homebrew formula.
  • 2025-11-11: version 1.27.0 added the `discover` package and discovery option to the `oj` application.
  • 2026-03-16: version 1.28.1 removed an accidental Go 1.22 dependency in `alt.Checksum()`.
  • 2026-07-01: Homebrew's formula API reported stable version 1.28.1 for `oj`.

Related projects

  • OjG is related to Ohler's Ruby `Oj`, C `OjC`, Ruby XML parser `Ox`, and web-server projects such as Agoo. It is also related to the IETF JSONPath work and to Go JSON parser comparison projects.

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • Homebrew bottle メタデータは記録されていません。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
oj実行可能ファイルインデックス済み実行可能ファイルローカル実行可能ファイルインデックスから検出されました。

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-08-03
マネージャ版1.28.3
マネージャ更新日2026-08-01
ローカルデータ不明
上流利用不可
検出された最新未検出
  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:oj
バージョン1.28.3
パッケージマネージャHomebrew
ホームページhttps://github.com/ohler55/ojg
リポジトリhttps://github.com/ohler55/ojg
最終更新2026-08-01T02:59:07Z
Pulseupdated
Bottle未記録
サービス宣言なし

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

Combined YAML source

View the package source record on GitHub.

combined/oj.yml

使用ソース

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • pkg.so package database
  • pkgdb category and tag curation