360 Secure SkillHub
360 安全技能中心

Json Editor

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

ckchzh
ckchzh
热度 55.18
最近更新 2026-05-11 17:37:27
分类:效率依赖:代码执行 / 读写文件应用场景:数据处理 / 文件转换 / 调试排错

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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