JSON Format

Use this skill to pretty-print or minify a JSON string (mode=pretty|minify, optional sort_keys). Validates first. Deterministic, offline.

ncreighton Updated

File contents

json-format

Use this skill to pretty-print or minify a JSON string (mode=pretty|minify, optional sort_keys). Validates first. Deterministic, offline.

  • Kind: tool | Niche: ai | Cost tier: free | Version: 0.1.0

Empire Integration

import sys
sys.path.insert(0, r'C:\D\Claude Code Projects\_SHARED')
import empire_bootstrap  # wires all shared paths

Usage

As a CLI:

python run.py --text <string>

From a Python agent (ATEN runtime):

from skill_library import executor
result = executor.execute("json-format", {text=...})

Parameters

Name Type Required Description
text string yes Input text
mode string no pretty (default) or minify
sort_keys boolean no sort object keys

Returns

object{"status": "ok"|"error", "result": ...}

ncreighton/empire-skills/tree/main/skills/json-format commit 00aed5ee13

Frequently asked questions

npx skillmds@latest add ncreighton/json-format