mirror of
https://github.com/nlohmann/json.git
synced 2026-10-02 14:04:32 +07: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>