# 使用 Homebrew, apt 安装 jsonlint

查看 jsonlint 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:jsonlint
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install jsonlint
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install jsonlint
```

  证据: Debian stable package indexes: jsonlint from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## 软件包事实

- **软件包键:** brew:jsonlint
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/jsonlint>
- **版本:** 1.6.3
- **来源摘要:** JSON parser and validator with a CLI
- **主页:** <https://github.com/zaach/jsonlint>
- **仓库:** <https://github.com/zaach/jsonlint>
- **上游文档:** <https://github.com/zaach/jsonlint#readme>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/jsonlint/-/jsonlint-1.6.3.tgz>
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- jsonlint (cli)
- jsonlint (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 1.6.3
- 本地数据: OK
- 上游仓库: https://github.com/zaach/jsonlint
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

JSONLint is a JavaScript JSON parser and validator distributed as a small command-line tool. In package-manager culture it sits in the older generation of single-purpose JSON CLI utilities: install it, pipe a file or stdin through it, and get either formatted JSON or a syntax error.

### 项目历史

Zachary Carter's jsonlint repository began on GitHub on 2010-03-13 with a first commit titled "First". The README describes the project as a pure JavaScript version of the jsonlint.com service, with a command-line interface installable through npm and a CommonJS module interface.

The project kept a compact scope: parsing, validating, optional pretty printing, key sorting, in-place writes, and optional JSON Schema validation from the CLI. The README's MIT license notice names Zachary Carter and 2012, matching the era when Node.js command-line utilities were becoming common Homebrew and npm package-manager citizens.

### 采用历史

JSONLint's durable adoption came from being easy to package and easy to compose in Unix-style workflows. The Homebrew formula kept the `jsonlint` executable available to macOS users, while the README continued to document npm global installation for Node users.

### 使用方式

Typical usage is `jsonlint file.json` or piping JSON to stdin. Valid input is pretty-printed, invalid input reports a syntax error, and options cover indentation, compact error display, quiet validation, in-place overwrite, sorted keys, and schema validation.

### 为什么软件包爱好者会关心

JSONLint matters as a package-nerd artifact because it shows the small-tool phase of JSON tooling before larger Swiss-army commands dominated. It is not a data query language; it is the boring validator that fits cleanly in editor hooks, CI checks, and shell pipelines.

### 时间线

- 2010-03-13: First public GitHub commit.
- 2012: README license notice names Zachary Carter and the MIT license.
- 2022-07-12: GitHub repository metadata records a push on this date.

### Related projects

- The README explicitly connects the package to jsonlint.com and to editor integrations such as Syntastic, sourcebeautify, and ALE. It occupies the validation and formatting niche beside broader JSON tools such as jq.

### 来源

- <https://api.github.com/repos/zaach/jsonlint>
- <https://formulae.brew.sh/formula/jsonlint>
- <https://github.com/zaach/jsonlint>
- <https://github.com/zaach/jsonlint/commit/1740851f1fc2edc5c626241e8a737523bcabf8d8>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** jsonlint
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Debian apt - jsonlint - 1.11.0-2: normalized package name match | Debian stable package indexes: jsonlint from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | validating parser of JSON data structures | https://github.com/Seldaek/jsonlint
- Ubuntu apt - jsonlint - 1.10.2-1: normalized package name match | Ubuntu 24.04 LTS package indexes: jsonlint from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | validating parser of JSON data structures | https://github.com/Seldaek/jsonlint


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [node](https://www.automicvault.com/zh-hans/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [clang-format](https://www.automicvault.com/zh-hans/pkg/brew/clang-format/) - Shares av.db curated category or tags: cli, developer-tools, formatter, json.
- [dockerfmt](https://www.automicvault.com/zh-hans/pkg/brew/dockerfmt/) - Shares av.db curated category or tags: cli, developer-tools, formatter, parser.
- [fracturedjson](https://www.automicvault.com/zh-hans/pkg/brew/fracturedjson/) - Shares av.db curated category or tags: cli, developer-tools, formatter, json.
- [gdtoolkit](https://www.automicvault.com/zh-hans/pkg/brew/gdtoolkit/) - Shares av.db curated category or tags: cli, developer-tools, formatter, parser.
- [hq](https://www.automicvault.com/zh-hans/pkg/brew/hq/) - Shares av.db curated category or tags: cli, developer-tools, json, parser.
- [jqfmt](https://www.automicvault.com/zh-hans/pkg/brew/jqfmt/) - Shares av.db curated category or tags: cli, developer-tools, formatter, json.
- [jshon](https://www.automicvault.com/zh-hans/pkg/brew/jshon/) - Shares av.db curated category or tags: cli, developer-tools, json, parser.
- [jsonfmt](https://www.automicvault.com/zh-hans/pkg/brew/jsonfmt/) - Shares av.db curated category or tags: cli, developer-tools, formatter, json.
- [jsonlint](https://www.automicvault.com/zh-hans/pkg/npm/jsonlint/) - Same normalized package name appears in another local ecosystem. Shared terms: cli, json, jsonlint.
- [prettierd](https://www.automicvault.com/zh-hans/pkg/brew/prettierd/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, formatter, node.
- [vscode-langservers-extracted](https://www.automicvault.com/zh-hans/pkg/brew/vscode-langservers-extracted/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, json, node.
- [jsonlint](https://www.automicvault.com/zh-hans/pkg/npm/jsonlint/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/jsonlint.yml](https://github.com/automic-vault/db/blob/main/combined/jsonlint.yml)


## 来源

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