Search Issue Tracker
By Design
Votes
0
Found in
2018.4
2019.4.1f1
2021.1
Issue ID
1287280
Regression
No
System.Text.Json.JsonSerializer.Deserialize throws an error when deserializing a JSON to a class that has 2 or more properties
How to reproduce:
1. Open the attached project (case-1287280.zip)
2. Open the Build Settings (File -> Build Settings)
3. Make sure 'SampleScene' is included in the build
4. Enable the Development Build setting (just to see the error in the Development console)
5. Build and run the project
Expected result: no errors are thrown when deserializing a JSON string to a class that has 2 or more properties
Actual result: ExecutionEngineException is thrown in the Development console
Reproducible with: 2018.4.28f1, 2019.4.15f1, 2020.1.12f1, 2020.2.0b10, 2021.1.0a5
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
- White lighting artifact when a point light with a small emission range and "Hard Shadows" touches an object while a directional light with "Soft Shadows" and another point light are present
Resolution Note:
IL2CPP does not support generic instances created at runtime