# JSON response redactor

- Human page: https://happytails.ai/en/developer-tools/json-response-redactor/
- Markdown: https://happytails.ai/en/developer-tools/json-response-redactor.md
- Structured JSON: https://happytails.ai/agents/en/developer-tools/json-response-redactor/index.json
- Visibility: public

## Tool capabilities

| Property | Value |
| --- | --- |
| Tool ID | `json-response-redactor` |
| Category | developer-tools |
| Implementation | Registered implementation. Registration alone is not a production-quality guarantee. |
| Browser execution | Use the visible action or interactive controls. |
| Browser processing | Browser; see tool notes for network behavior. |
| HTTP API | Not callable through HTTP. |
| Browser-agent interface | run_current_tool |

### Implementation notes

Remove up to 100 distinct existing JSON Pointer paths. Overlapping paths are rejected. Array items are removed without shifting the selected original indices. Removing the root produces null. Removed values are not retained in the report. This does not automatically detect secrets or support wildcard paths. Processing stays on your device. JSON supports up to 1,000,000 input characters, 50,000 values and 64 nesting levels. Duplicate keys and numbers that cannot survive JSON serialization exactly are rejected. Operations are limited to 100,000 comparisons, 4,000,000 JSON output characters and 8,000,000 CSV output characters. Tables show the first 200 rows; downloads preserve the complete report. CSV uses exact JSON Pointer paths and typed JSON value envelopes for spreadsheet-safe reporting.

### Inputs and settings

Text input: JSON input.

Example or placeholder shown in the interface (not a validated fixture):

```text
{
  "token": "example-token",
  "user": {
    "name": "Ada",
    "email": "ada@example.test"
  },
  "items": [
    {
      "id": 1
    },
    {
      "id": 2
    },
    {
      "id": 3
    }
  ]
}
```

Remove up to 100 distinct existing JSON Pointer paths. Overlapping paths are rejected. Array items are removed without shifting the selected original indices. Removing the root produces null. Removed values are not retained in the report. This does not automatically detect secrets or support wildcard paths. Up to 1,000,000 characters. Review the settings before running.

| Setting | Meaning | Control type | Default | Constraints |
| --- | --- | --- | --- | --- |
| `paths` | JSON Pointers to remove | textarea | "[\"/token\"]" |  |

### Browser-agent workflow

1. Open the human page in a browser that supports WebMCP.
2. Discover the interface exposed by that page; use its actual schema.
3. Select files on the page first when the tool requires files.
4. Call `run_current_tool` with valid input and settings.
5. Inspect the returned result or error and the displayed output. Retrieve files from the displayed download links.

Calls do not automatically copy or download results. Browser permissions still apply. Interface availability alone is not proof of successful execution.

### Planning specification

Remove up to 100 distinct existing JSON Pointer paths. Overlapping paths are rejected. Array items are removed without shifting the selected original indices. Removing the root produces null. Removed values are not retained in the report. This does not automatically detect secrets or support wildcard paths. Processing stays on your device. JSON supports up to 1,000,000 input characters, 50,000 values and 64 nesting levels. Duplicate keys and numbers that cannot survive JSON serialization exactly are rejected. Operations are limited to 100,000 comparisons, 4,000,000 JSON output characters and 8,000,000 CSV output characters. Tables show the first 200 rows; downloads preserve the complete report. CSV uses exact JSON Pointer paths and typed JSON value envelopes for spreadsheet-safe reporting.

This describes intended requirements. Use the implementation notes, interface schema and observed output to determine current support.

### Complete machine-readable capability record

```json
{
  "id": "json-response-redactor",
  "category": "developer-tools",
  "built": true,
  "requirements": "Remove up to 100 distinct existing JSON Pointer paths. Overlapping paths are rejected. Array items are removed without shifting the selected original indices. Removing the root produces null. Removed values are not retained in the report. This does not automatically detect secrets or support wildcard paths. Processing stays on your device. JSON supports up to 1,000,000 input characters, 50,000 values and 64 nesting levels. Duplicate keys and numbers that cannot survive JSON serialization exactly are rejected. Operations are limited to 100,000 comparisons, 4,000,000 JSON output characters and 8,000,000 CSV output characters. Tables show the first 200 rows; downloads preserve the complete report. CSV uses exact JSON Pointer paths and typed JSON value envelopes for spreadsheet-safe reporting.",
  "implementation": {
    "fields": [
      {
        "key": "paths",
        "label": "JSON Pointers to remove",
        "value": "[\"/token\"]",
        "type": "textarea",
        "maxLength": 200000
      }
    ],
    "presentation": "metrics",
    "inputMaxLength": 1000000,
    "inputErrorCode": "DATA_DIAGNOSTIC_INPUT",
    "note": "Remove up to 100 distinct existing JSON Pointer paths. Overlapping paths are rejected. Array items are removed without shifting the selected original indices. Removing the root produces null. Removed values are not retained in the report. This does not automatically detect secrets or support wildcard paths. Processing stays on your device. JSON supports up to 1,000,000 input characters, 50,000 values and 64 nesting levels. Duplicate keys and numbers that cannot survive JSON serialization exactly are rejected. Operations are limited to 100,000 comparisons, 4,000,000 JSON output characters and 8,000,000 CSV output characters. Tables show the first 200 rows; downloads preserve the complete report. CSV uses exact JSON Pointer paths and typed JSON value envelopes for spreadsheet-safe reporting.",
    "experience": {
      "automatic": false,
      "single": false,
      "inputMaxLength": 1000000,
      "inputMode": "text",
      "label": "JSON input",
      "placeholder": "{\n  \"token\": \"example-token\",\n  \"user\": {\n    \"name\": \"Ada\",\n    \"email\": \"ada@example.test\"\n  },\n  \"items\": [\n    {\n      \"id\": 1\n    },\n    {\n      \"id\": 2\n    },\n    {\n      \"id\": 3\n    }\n  ]\n}",
      "help": "Remove up to 100 distinct existing JSON Pointer paths. Overlapping paths are rejected. Array items are removed without shifting the selected original indices. Removing the root produces null. Removed values are not retained in the report. This does not automatically detect secrets or support wildcard paths. Up to 1,000,000 characters. Review the settings before running.",
      "action": null
    },
    "mode": "explicit",
    "interactive": false
  },
  "execution": "Browser interface",
  "api": null,
  "browser_agent": {
    "supported": true,
    "name": "run_current_tool",
    "discovery": "WebMCP on the human page in a supporting browser",
    "verification": "See audit/API-AUDIT.md; availability is not verification"
  }
}
```

## Page guide

Remove selected JSON fields or array items locally and export a valid response without retaining removed values in the report.

How can we improve this tool?

Report a problem or share an idea.

Please leave out private information. Your message and the tool name go to our team via PostHog.

### How to use JSON response redactor

1. Paste the documented input and choose the relevant settings.
2. Run the local diagnostic and inspect its findings.
3. Download the complete output and reports. Tables preview the first 200 rows.

## Useful next steps

- [Jsonpath tester](https://happytails.ai/en/developer-tools/jsonpath-tester/) ([Markdown](https://happytails.ai/en/developer-tools/jsonpath-tester.md))

- [JSON formatter](https://happytails.ai/en/developer-tools/json-formatter/) ([Markdown](https://happytails.ai/en/developer-tools/json-formatter.md))

## Remove exactly the selected paths

Paths use RFC 6901 syntax, including ~1 for a slash and ~0 for a tilde. Original array indices are respected even when several items are removed. Missing or overlapping paths are rejected. Root removal returns null. The tool does not infer secrets, and you should review the exported response before sharing it.

### Keep the complete report

JSON records the full result, settings and assumptions. CSV contains exact JSON Pointer paths, value types and JSON value envelopes for every report node, including typed object and array markers. Preview limits do not truncate downloadable reports.
