JSON Formatter
Format, validate, and minify JSON
API executable
Overview
ID: json-formatter
Category: converter
Call this tool over HTTP with POST /execute/json-formatter. Path, headers, body fields, sample responses, and errors are documented below.
Endpoint
POST
/api/v1/execute/json-formatterAuthenticate with X-API-Key or Authorization: Bearer. See Authentication.
API reference
Path, header, and body fields accepted by this execute call.
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| tool | path | string | Yes | Tool identifier used in the execute path. Example: json-formatter |
| X-API-Key | header | string | Yes | Your IT-ToolBox API key. Authorization: Bearer is also accepted. Example: YOUR_API_KEY |
| Content-Type | header | string | Yes | Must be application/json for execute requests. Example: application/json |
| input.indent | body | number | Yes | Argument for JSON Formatter. Example: 2 |
| input.json | body | string | Yes | Argument for JSON Formatter. Example: {"a":1} |
Code examples
shell
curl -X POST /api/v1/execute/json-formatter \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"indent": 2,
"json": "{\"a\":1}"
}
}'Tool UI
Open the interactive experience to try the tool without writing HTTP clients.
Open tool UI