What does escaping JSON mean?
A JSON string is wrapped in double quotes, and some characters cannot appear inside it as they are. A quote would end the string, and a real line break would break the line. Escaping replaces them with a backslash code.
A double quote becomes \", a backslash becomes \\, a line break becomes \n and a tab becomes \t. Other control characters become \uXXXX codes. For example, He said "hello" followed by a new line and Path: C:\temp\file.txt turns into one safe line of text.
How to use the JSON Escape
- Paste or type the text on the left.
- Choose output with quotes or without quotes.
- Copy the escaped text.
- Place it in your JSON value.