Example

Prepare a JSON Bug Report Without Exposing Secrets

A JSON workflow for formatting a payload, preserving data types, and redacting fields before sending a support ticket.

The situation

A support engineer needs to send a failing API response to a vendor. The payload includes useful error context but also contains a bearer token and a customer email address.

Original compact payload

{"ok":false,"request_id":"req_91a","customer":{"email":"[email protected]","plan":"pro"},"auth":"Bearer secret-token","error":{"code":"timezone_mismatch","timestamp":1784371200000}}

Workflow

  1. Format the payload so the customer object, auth field, and error object are easy to see.
  2. Replace the email and bearer token with placeholders while keeping both fields as strings.
  3. Keep request_id if the vendor needs it for log lookup, or redact it if policy requires.
  4. Convert the millisecond timestamp separately and add the UTC value in the ticket notes.
  5. Validate the final JSON after redaction.

Redacted JSON example

{
  "ok": false,
  "request_id": "req_91a",
  "customer": {
    "email": "[redacted-email]",
    "plan": "pro"
  },
  "auth": "[redacted-token]",
  "error": {
    "code": "timezone_mismatch",
    "timestamp": 1784371200000
  }
}

Review checks

Open JSON Formatter Back to examples