Search Issue Tracker
Won't Fix
Votes
2
Found in
2021.3.40f1
2022.3.37f1
6000.0.10f1
7000.0.0a1
Issue ID
UUM-76439
Regression
No
JsonSerialization.ToJson serializes "$type" when serializing Dictionaries
How to reproduce:
1. Open the “Test.zip“ project
2. Open the “Playground“ Scene
3. Enter Play Mode
4. Observe the Console
Expected result: The Console log reads:
”{ "Single": {},
"List": [ {} ],
"Set": [ {} ],
"Dict": { "Item": {} }
}”
Actual result: The Console log reads:
”{ "Single": {},
"List": [ {} ],
"Set": [ {} ],
"Dict": { "Item": { "$type": "BugReproduction.Item, Assembly-CSharp" } }
}”
Reproducible in: 2021.3.40f1, 2022.3.37f1, 6000.0.10f1
Reproduced on: Windows 11 Pro (23H2)
Not reproduced on: No other environment tested
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
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
Resolution Note:
Thank you for reporting a bug to Unity.
We have reviewed the issue carefully, and in this case, the team is unable to prioritize fixing this bug. There are a number of reasons we make this decision, including the impact and severity of the issue across our user and customer base, and the possibility that future plans may solve the problem in a different way, or that a workaround for the bug may be available.
Today we will be closing this case. Thank you again for taking the time to report this issue, and please let us know if there is anything else that changes the impact or severity of this issue.