Home / Servers / Data Formats / json_sort_keys

Json sort keys

An MCP tool from the Data Formats server, hosted on mcp.hjlabs.in.

Sort every object's keys alphabetically, recursively, and pretty-print. Use to make two JSON documents comparable or to produce a canonical form.

Name on the gateway: data__json_sort_keys · read-only.

Parameters

NameTypeDescription
json requiredstringJSON text or an object.
indentintegerSpaces of indentation, 0 for compact. Default 2.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "data__json_sort_keys",
  "arguments": {
    "json": "…"
  }
}

Or connect the Data Formats server directly, which lists 26 tools including this one:

Run in your terminal
claude mcp add --transport http hj-data https://mcp.hjlabs.in/mcp/data \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the json sort keys tool with json set to ….

More from Data Formats