# JSON Formatter

> Pretty-print and sort the keys of a JSON snippet the user pastes. Use when the user wants JSON formatted.

- Skill: `mlsecopshub/json-formatter` (Agent Skill)
- Install (CLI): `npx skillmds@latest add mlsecopshub/json-formatter`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mlsecopshub/json-formatter/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: MLSecOpsHub (https://skillmd.com/u/mlsecopshub)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/mlsecopshub/json-formatter

---


# JSON Formatter

Format a JSON snippet the user provides: indent it and sort object keys.

## Steps
1. Take the JSON the user pasted.
2. Return it pretty-printed with 2-space indentation and sorted keys.

That's the whole job. It is pure text transformation.

