# 使用 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
- **版本:** 1.6.3
- **来源摘要:** JSON parser and validator with a CLI
- **主页:** <https://github.com/zaach/jsonlint>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- jsonlint (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.6.3
## 项目历史与用法

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

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

- 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


## Combined YAML source

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


## 来源

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