← 返回
效率工具 中文

Json Linter

Validates JSON syntax across the workspace. Use this skill to check for syntax errors in configuration files, memory files, or data assets.
在工作区中验证JSON语法,检查配置文件、记忆文件或数据资产的语法错误。
wanng-ide
效率工具 clawhub v1.0.0 1 版本 99831.4 Key: 无需
★ 1
Stars
📥 1,164
下载
💾 14
安装
1
版本
#latest

概述

JSON Linter

A simple utility to recursively scan the workspace for .json files and validate their syntax using JSON.parse().

Usage

# Scan the entire workspace (from current working directory)
node skills/json-linter/index.js

# Scan a specific directory
node skills/json-linter/index.js --dir path/to/dir

Output

JSON report containing:

  • scanned_at: Timestamp
  • total_files: Number of .json files scanned
  • valid_files: Number of valid files
  • invalid_files: Number of invalid files
  • errors: Array of error objects:
  • path: Relative path to file
  • error: Error message (e.g., "Unexpected token } in JSON at position 42")

Example Output

{
  "scanned_at": "2026-02-14T21:45:00.000Z",
  "total_files": 150,
  "valid_files": 149,
  "invalid_files": 1,
  "errors": [
    {
      "path": "config/broken.json",
      "error": "Unexpected token } in JSON at position 42"
    }
  ]
}

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 06:07 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Api Tester

wanng-ide
执行结构化HTTP/HTTPS请求(GET、POST、PUT、DELETE),支持自定义标头和JSON正文。适用于API测试、健康检查或交互操作。
★ 7 📥 7,483
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,302
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,846