Add keep parameter to dump to copy invalid UTF-8 bytes as-is
Add an enumerator keep to error_handler_t to allow to keep the input as-is in case of UTF-8 errors.
Fixes #4552
🔴 Amalgamation check failed! 🔴
The source code has not been amalgamated. @nlohmann Please read and follow the Contribution Guidelines.
coverage: 99.639%. remained the same when pulling 4ab98c39c3a7aa7ccd727f83f3350a0d1d44ca4c on issue4552-ignore into 663058e7d18241338aec42846d4f77995275ccf6 on develop.
It looks good to me. I thought you would do json_string === s_kept, but you took it's substring at position 1 instead, I guess dump gives you an extra character in the beginning or something?
Yes, dump adds quotes.
This pull request has been marked as stale because it has had no activity for 30 days. While we won’t close it automatically, we encourage you to update or comment if it is still relevant. Keeping pull requests active and up-to-date helps us review and merge changes more efficiently. Thank you for your contributions!
@nlohmann Does this still need work?
Yes. And clarification.