process_json
Prettify, validate, or minify JSON strings for debugging, formatting API responses, or verifying syntax.
Instructions
Prettify, validate, or minify a JSON string.
Use this for debugging, formatting API responses, cleaning up configuration
files, or verifying that a string is valid JSON.
Parameters:
json_string — The JSON string to process (required). Pass the raw JSON text.
mode — Operation: "prettify" (indent + sort keys), "validate"
(check syntax only), or "minify" (compact, no whitespace)
(default: "prettify").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json_string | Yes | ||
| mode | No | prettify |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |