Skip to content
Back to skills

Cn Json Tools

ASecurity

JSON格式化、比对、提取、压缩。

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
toolspythonbashapi

Works with

  • api

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add Lord1Egypt/awesome-skill-forge --skill cn-json-tools --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cn Json Tools?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cn Json Tools
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lord1egypt-cn-json-tools/badge)](https://www.skillsdirectory.com/skills/lord1egypt-cn-json-tools)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
slug: cn-json-tools
name: JSON工具箱
version: "1.0.0"
author: 千策

# JSON工具箱

JSON格式化、比对、提取、压缩。

## 核心功能
- **format**:格式化JSON(缩进美化)
- **diff**:比对两个JSON文件的差异
- **extract**:从JSON中提取指定路径字段
- **minify**:压缩JSON(去除空白)
- **validate**:验证JSON格式是否合法

## 使用场景
- 调试API返回数据
- 对比两个配置文件差异
- 从复杂JSON中提取关键字段
- 压缩JSON用于配置文件

## 使用方式
```bash
# 格式化
python ~/.qclaw/skills/cn-json-tools/json_tool.py format "{\"a\":1,\"b\":2}"

# 比对
python ~/.qclaw/skills/cn-json-tools/json_tool.py diff file1.json file2.json

# 提取
python ~/.qclaw/skills/cn-json-tools/json_tool.py extract "{\"user\":{\"name\":\"张三\"}}" "user.name"

# 压缩
python ~/.qclaw/skills/cn-json-tools/json_tool.py minify "{\"a\":1,\"b\":2}"

# 验证
python ~/.qclaw/skills/cn-json-tools/json_tool.py validate "{\"a\":1}"
```

## 依赖
- Python3(标准库,无需安装任何包)

## 标签
cn, json, tools, format, diff, formatter

---

**出品:** AISoBrand|爱索品牌 — AI搜索优化工具  
**官网:** https://aisobrand.com  
**免费检测你的品牌在AI搜索中有没有存在感 →** [30秒出结果](https://aisobrand.com/free-diagnosis.html)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.