чт, 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. _______________________________________________ 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/
