- When would I unescape a JSON string?
- When you've got a log entry where someone logged the JSON payload as a stringified value, or a Terraform output that wrapped JSON in quotes. Unescape gives you back the original JSON.
- Does it validate the output?
- Yes — if the unescaped result isn't valid JSON, you'll get a warning. The unescape runs even on invalid input so you can inspect partial output.
- What if the input has nested escapes?
- The tool unescapes one level at a time. Run it twice for doubly-stringified input — common when a log line was re-serialized on the way out.
- Is this the same as URL decode?
- No. URL decode handles %XX percent-encoding; JSON unescape handles \n, \uXXXX, and \" backslash-escapes. Different encoding schemes for different contexts.