← All tools

Data / VERSION 1

Normalize JSON

Recursively sort object keys for predictable JSON comparisons and readable configuration diffs.

Available via local MCP
RuntimeLocal DockerNetworkNoneRequest / result256 KiB eachProvider costNo API fees; local compute

Give it a task.

Use this MCP call after connecting Piwi. The output below is the result asserted by this tool's tests.

MCP tool call
{
  "name": "piwi_run_json_normalize",
  "arguments": {
    "input": {
      "zebra": 2,
      "alpha": 1
    }
  }
}
Expected output
{
  "alpha": 1,
  "zebra": 2
}

Inputs

  • A JSON object

Outputs

  • The object with recursively sorted keys