- What's the difference between escape and stringify?
- Escape takes raw text (a code snippet, a shell command) and returns JSON-safe string literal content. Stringify takes a JSON value and wraps the whole thing in a string.
- Are unicode characters escaped?
- By default yes — \uXXXX sequences are emitted so the output works in ASCII-only contexts (cURL headers, shell scripts). Toggle 'ASCII-safe' off for raw UTF-8.
- Does it escape newlines and tabs?
- Yes — \n, \t, \r, and form feed become their escape sequences. Null bytes become \u0000.
- Is the output ready to paste into a JSON file?
- Yes, between a pair of double quotes. The tool only returns the escaped contents — add your own `"..."` wrapper.