Encode newlines and tabs inside strings.
Section: String gotchas
Use escape sequences for control characters
json
json
{
"text": "line 1\nline 2\tindented"
}Explanation
Use escaped characters rather than raw line breaks inside a JSON string.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing String gotchas