← 返回
开发者工具 中文

Jsonlint

Validate and pretty-print JSON files from the terminal. Use when linting config files, formatting API payloads, checking syntax before deployment.
在终端中验证并美化打印 JSON 文件,适用于检查配置文件、格式化 API 请求体、部署前语法检查。
bytesagain3
开发者工具 clawhub v3.0.0 2 版本 99839.7 Key: 无需
★ 0
Stars
📥 623
下载
💾 14
安装
2
版本
#latest

概述

JSONLint

A real JSON linter and toolkit for the terminal. Validate syntax, pretty-print, minify, compare files, list keys, and extract values by path — all powered by python3.

Commands

CommandDescription
----------------------
jsonlint validate Check JSON syntax — reports type, element count, file size, and shows error context on failure
jsonlint format Pretty-print JSON with 4-space indentation
jsonlint minify Compact JSON (remove all whitespace), shows bytes saved
jsonlint diff Deep structural comparison of two JSON files — shows added, removed, and changed values with dot-paths
jsonlint keys List all top-level keys with types and value previews
jsonlint extract Extract a value by dot-path (e.g. config.database.host), supports array indices like items[0]

Requirements

  • python3 (uses json stdlib module)

Examples

# Validate a config file
jsonlint validate config.json

# Pretty-print API response
jsonlint format response.json

# Minify for deployment
jsonlint minify package.json

# Compare two versions
jsonlint diff old.json new.json

# List what's in a JSON file
jsonlint keys data.json

# Dig into nested values
jsonlint extract config.json database.host

版本历史

共 2 个版本

  • v3.0.0 当前
    2026-03-29 17:22 安全 安全
  • v1.0.6
    2026-03-19 06:24

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Thesis Helper

bytesagain3
论文写作助手。论文大纲生成、文献综述框架、摘要生成、引用格式转换、格式规范检查、答辩准备。Thesis helper with outline generation, literature review, abstract writing,
★ 1 📥 3,510
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,918
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,437