On Thu, Oct 16, 2025 at 2:19 PM Дмитрий Архипов via Boost-users < [email protected]> wrote:
> чт, 16 окт. 2025 г. в 10:12, Pavel Vazharov via Boost-users > <[email protected]>: > > > > 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 -- [email protected] > To unsubscribe send an email to [email protected] > https://lists.boost.org/mailman3/lists/boost-users.lists.boost.org/ > Archived at: > https://lists.boost.org/archives/list/[email protected]/message/3UOLRMYDP6CA2UZH5HTD6AT6TRYFFDQW/ > _______________________________________________ Boost-users mailing list -- [email protected] To unsubscribe send an email to [email protected] https://lists.boost.org/mailman3/lists/boost-users.lists.boost.org/ Archived at: https://lists.boost.org/archives/list/[email protected]/message/3AP5EIVNVNR5X4WXVKKEVY7Y66GGBI77/
