Search Issue Tracker

Active

Under Consideration for 2021.3.X, 2022.3.X

Votes

2

Found in

2021.3.40f1

2022.3.37f1

6000.0.10f1

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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.