Open Arlen-LT opened 7 months ago
While i am only a user and not a maintainer of Newtonsoft.Json (but moving away from it in favour of STJ), your problem is essentially with the code il2cpp produces. Therefore, you should contact the il2cpp folks and file an issue with them and listen to what they have to say about what you could/should do regarding using il2cpp on a project utilizing Newtonsoft.Json. There is/was a custom 3rd-party modification of Newtonsoft.Json somewhere on github that claims to be compatible with il2cpp, but i don't know it and can't say anything about it. (Also, it will be unlikely to get support and help for a 3rd-party modification of Newtonsoft.Json here in the issue tracker of the official Newtonsoft.Json library.)
Version: 13.0.2(com.unity.nuget.newtonsoft-json@3.2)
Frequency: rarely
Description:
I think the crash is resulted by both Newtonsoft.json and il2cpp, maybe without il2cpp, this code can also throw some exception but can be handle by catch exception.
Here's the log:
Source/destination JSON
Expected behavior
Not Crash
Steps to reproduce