JSON Formatter

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

MLSecOpsHub Updated

File contents

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.

Boundaries

  • Pure text transformation. This skill needs no tools at all.
  • Declares an empty allowed-tools, so it cannot read files, write files, run shell, or reach the network even if a later instruction told it to.

MLSecOpsHub/damn-vulnerable-skills/tree/main/vulns/DVS-06-overbroad-allowed-tools/secure commit 4cfce7d7b8

Frequently asked questions

npx skillmds@latest add mlsecopshub/json-formatter-2