json_formatter
verifiedv0.1Formats, minifies, or validates JSON in the browser. Pass text (0–100000 chars) and optional mode, indent, and sortKeys. Invalid JSON is returned as valid:false with an error object — it does not throw and this Tool does not execute JSON as code. Variant URLs are not a second machine Tool — pass mode explicitly. Do not use this to find-and-replace (that is find_and_replace).
Updated 9/3/2026 · Created 9/3/2026
Input Schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"text"
],
"properties": {
"mode": {
"enum": [
"format",
"minify",
"validate"
],
"type": "string",
"default": "format"
},
"text": {
"type": "string",
"maxLength": 100000
},
"indent": {
"enum": [
"2",
"4",
"tab"
],
"type": "string",
"default": "2"
},
"sortKeys": {
"type": "boolean",
"default": false
}
},
"additionalProperties": false
}Full Contract
{
"name": "json_formatter",
"description": "Formats, minifies, or validates JSON in the browser. Pass text (0–100000 chars) and optional mode, indent, and sortKeys. Invalid JSON is returned as valid:false with an error object — it does not throw and this Tool does not execute JSON as code. Variant URLs are not a second machine Tool — pass mode explicitly. Do not use this to find-and-replace (that is find_and_replace).",
"inputSchema": {
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"text"
],
"properties": {
"mode": {
"enum": [
"format",
"minify",
"validate"
],
"type": "string",
"default": "format"
},
"text": {
"type": "string",
"maxLength": 100000
},
"indent": {
"enum": [
"2",
"4",
"tab"
],
"type": "string",
"default": "2"
},
"sortKeys": {
"type": "boolean",
"default": false
}
},
"additionalProperties": false
}
}GET /api/tool/simpletoolstack.com/json_formatter