On Thu, Oct 16, 2025 at 2:19 PM Дмитрий Архипов via Boost-users < boost-users@lists.boost.org> wrote:
чт, 16 окт. 2025 г. в 10:12, Pavel Vazharov via Boost-users <boost-users@lists.boost.org>:
Hi there,
Is it possible to "make" the boost.json parser allow unescaped control characters in JSON string values? It seems to me that `allow_invalid_utf8` and `allow_invalid_utf16` parse_options doesn't help with this. I also looked at the source code of `parse_string` function and it seems to me that even if I provide a
handler
with `on_string` member function the parser will still throw an error because of the unescaped control characters before calling `on_string`. Maybe my only option is to escape such control characters before giving the JSON data to the boost json parser?
Can you give me an example of a string that you want parsed? BTW, I think it would be better if you filed an issue against Boost.JSON's (https://github.com/boostorg/json/issues), so that we could discuss it there. It would be better for future Boost.JSON users having the same problem as you.
Thank you for the advice. I opened an issue and added an example code here - https://github.com/boostorg/json/issues/1116
_______________________________________________ Boost-users mailing list -- boost-users@lists.boost.org To unsubscribe send an email to boost-users-leave@lists.boost.org https://lists.boost.org/mailman3/lists/boost-users.lists.boost.org/ Archived at: https://lists.boost.org/archives/list/boost-users@lists.boost.org/message/3U...