Skip to content

Json Escaper API

POST https://api.findutils.com/api/tools/json-escaper/execute

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.

Request body

application/json
  • text

    string required

    The text to escape or unescape.

  • mode

    string optional

    Direction: "escape" (default) adds JSON escapes; "unescape" removes them. One of escape · unescape. Default "escape".

Example arguments

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