360 Secure SkillHub
360 安全技能中心

Json Editor

通过 Bash 脚本调用内嵌 Python 处理 JSON:支持 2 空格缩进美化、压缩,以及用点号路径(如 items.0.name)提取指定字段,适用于调试接口、整理嵌套数据或从日志中取字段。需 bash 4+ 与 python3,本地运行。

分类:效率
ckchzh
ckchzh
热度 30.48
最近更新 2026-05-11 17:37:27

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add ckchzh/json-editor
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
JSON Editor — Advanced Logic Parser & Formatter
description
Prettify, minify, and query JSON data with path notation. 支持 JSON 格式美化、压缩及路径提取 (JQ 风格)。Use when debugging APIs, cleaning nested data, or extracting specific fields from logs.
version
2.0.0
author
BytesAgain
homepage
https://bytesagain.com
source
https://github.com/bytesagain/ai-skills
tags
["json","data-format","api-debug","devtools","formatter","jq","数据处理"]

JSON Editor / 楼台 JSON 助手

Quick Start / 快速开始

Just ask your AI assistant: / 直接告诉 AI 助手:

  • "Format this messy JSON file" (美化这个杂乱的 JSON 文件)
  • "Extract the 'id' field from results.json" (从 results.json 中提取 id 字段)
  • "Minify this configuration for production" (为生产环境压缩此配置)

Commands / 常用功能

pretty

Format JSON with 2-space indentation.

bash scripts/script.sh pretty data.json

get

Query specific data using dot notation (e.g. user.profile.0.id).

bash scripts/script.sh get data.json "items.0.name"

Requirements

  • bash 4+
  • python3

Feedback

https://bytesagain.com/feedback/ Powered by BytesAgain | bytesagain.com