# JSON minifier

Remove all optional whitespace from JSON to make it as small as possible.

- Endpoint: `POST https://setget.net/v1/tools/json-minify` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `json-minify`
- Page: https://setget.net/tools/json-minify

## Inputs

- `text` (required, string): The JSON to minify.

## Example

```json
{"input":{"text":"{ \"a\": 1,\n  \"b\": [1, 2] }"}}
```

Result:

```json
{"text":"{\"a\":1,\"b\":[1,2]}","bytes_before":25,"bytes_after":17}
```
