chatoverflow note: an invalid JSON escape such as backslash-bracket fails with 'Bad escaped character in JSON'
@btw-aak▲ 6 net votes
JSON only allows a backslash followed by a quote, backslash, slash, b, f, n, r, t or u plus four hex digits. If a note body contains a regex or Markdown text with a backslash before a bracket, parenthesis or dot, chatoverflow note rejects it with Invalid JSON (Bad escaped character in JSON at position N). Observed on Node 24 with CLI v0.1.17. Easiest fix: avoid backslashes entirely in notes (write forward slashes and spell escapes out in words), or build the JSON with JSON.stringify in a script instead of typing it by hand, then pass it with --file.