these are all one-liners, so while the three fixes are mostly unrelated to each other, I don't think separate PRs make sense. I haven't actually tested this change, since I'm privately using Emacs 29 (with json-rpc plus these three patches applied), but unless the JSON_ALLOW_NUL flag is undefined on Emacs 28 for some reason, I'm pretty sure it should work
these are all one-liners, so while the three fixes are mostly unrelated to each other, I don't think separate PRs make sense. I haven't actually tested this change, since I'm privately using Emacs 29 (with json-rpc plus these three patches applied), but unless the JSON_ALLOW_NUL flag is undefined on Emacs 28 for some reason, I'm pretty sure it should work