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.
Did you read "Parsing JSON is a minefield"?
You're thinking of "a\u000b". "a\u0000b" is the three-character string also written "a\x00b".