Minificar JSON
json-minifyMinifica JSON eliminando espacios; informa tamaños antes y después. Cuándo: hay que transformar, comparar o revisar con exactitud datos estructurados (JSON, CSV, YAML, XML, arreglos). No para: formatear JSON con sangría de 2/4 espacios o tabulador, con opción de ordenar claves (json-pretty). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Parses JSON text and serializes it without whitespace; reports byte sizes before and after. When: structured data (JSON, CSV, YAML, XML, arrays) has to be transformed, compared or checked exactly. Not for: parsing JSON text and re-serializes it with 2/4-space or tab indentation, optionally sorting object keys (json-pretty). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"json": "<json>"
},
"name": "json-minify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | JSON text (string; required). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | No | any JSON value | |
| bytes_after | No | ||
| bytes_before | No |