Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by kstenerud

4 hours ago

"a\u0000b" ("a" followed by a vertical tabulation control code) is also a perfectly valid and in-bounds BONJSON string. What BONJSON rejects is any invalid UTF-8 sequences, which shouldn't even be present in the data to begin with.

2 comments

kstenerud

Reply

gritzko  32 minutes ago

Did you read "Parsing JSON is a minefield"?

wizzwizz4  2 hours ago

You're thinking of "a\u000b". "a\u0000b" is the three-character string also written "a\x00b".

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities