# Json Escaper — REST API endpoint `json-escaper`

Returns the text with JSON string escapes applied (mode "escape") or removed (mode "unescape"). Escapes backslashes, double quotes, newlines, carriage returns, tabs, form feeds and backspaces so the text can sit inside a JSON string literal.

- Category: encoding
- MCP server: https://mcp.findutils.com/ (Streamable HTTP, no API keys, 120 req/min per IP)
- REST endpoint: POST https://api.findutils.com/api/tools/json-escaper/execute (no API keys, 60 req/min per IP)
- Reference page: https://findutils.com/api/json-escaper/
- Same tool on the other surface: https://findutils.com/mcp/json-escaper/

## Call the endpoint (verified example)

```bash
curl -X POST https://api.findutils.com/api/tools/json-escaper/execute \
  -H "Content-Type: application/json" \
  -d '{
    "text": "He said \"hi\"\nbye",
    "mode": "escape"
  }'

# Parameter schema
curl https://api.findutils.com/api/tools/json-escaper
```

## Input schema

| Argument | Type | Required | Description |
|---|---|---|---|
| `text` | string | yes | The text to escape or unescape. |
| `mode` | string (escape \| unescape) | no | Direction: "escape" (default) adds JSON escapes; "unescape" removes them. Default: `"escape"`. |

Example arguments (verified):

```json
{
  "text": "He said \"hi\"\nbye",
  "mode": "escape"
}
```

OpenAPI 3.1 spec: https://findutils.com/api/openapi.json · Interactive docs: https://findutils.com/api/docs/

## Also an MCP tool

```bash
claude mcp add findutils --transport http https://mcp.findutils.com/
```

Then ask the client to call `findutils:json_escaper`. Full MCP reference: https://findutils.com/mcp/json-escaper/

---
Full catalog: GET https://api.findutils.com/api/tools · https://findutils.com/api/ · https://findutils.com/llms.txt
