som45oul
som45oul
CC#
Created by som45oul on 10/2/2023 in #help
✅ JsonSerializer: Won't deserialize correctly
Hi there. Hoping someone can help me spot the source of my problem with my simple WinForms app here.
Basically, I can serialize an object correctly, but when I try to deserialize it, the "sub objects" don't populate correctly. No errors are thrown.
The object itself is a Dictionary<string, Dictionary<string, ScreenSettings>> Where the following class is in the same form: public class ScreenSettings { public string Name; public bool Hide; } During debug, I can see that the JSON is correctly created with Serialize, however when I Deserialize, the "ScreenSettings" are not populated. What am I doing wrong here?
Grateful in advance for the kind help.
11 replies