4 ms·
"Note that JSON pointers can contain the NUL (Unicode U+0000) character. Care is needed not to misinterpret this character in programming languages that use
by jupp0r 4y ago
"Note that JSON pointers can contain the NUL (Unicode U+0000)
character. Care is needed not to misinterpret this character in
programming languages that use NUL to mark the end of a string."
What could possibly go wrong?
- zerocrates 4y agoI wonder why it allows NUL... I'm pretty sure JSON itself doesn't: you need to do a \u escape to do the control characters including NUL. It looks like that kind of escaping is just not supported at all in JSON Pointer. I kind of want to say that once you've noticed NUL is a problem enough to call it out the document, you should probably just ban it and pop in an escape to represent it.