JSON Escape

Escapes the input so it can be embedded as a JSON string.

  • ID: json-escape
  • Category: Data format
  • Aliases: escape json, stringify

Arguments

ArgumentTypeDefaultConstraints
Include the quotesbooleantrueOff gives just the escaped body, for pasting between quotes you already typed.
Escape non-ASCIIbooleanfalseWrites every character above 127 as \uXXXX, which survives a transport that is not UTF-8 clean.