mirror of
https://github.com/nlohmann/json.git
synced 2026-09-27 12:35:47 +00:00
error_handler_t::ignore drops invalid bytes although its docs promised to copy them (#4552). Add keep, which copies each ill-formed subsequence byte-for-byte while still escaping valid characters. Fixes #4552 Signed-off-by: Niels Lohmann <mail@nlohmann.me>