You need to escape certain characters inside JSON string values.
Specifically, you must escape:
- Double quotes:
"
- Backslashes:
\
- Control characters (such as newlines, tabs, etc.)
Curly braces, square brackets, and colons do not need to be escaped inside strings.
Escaping ensures that your JSON string is valid and can be correctly parsed by software.