✅ Newtonsoft.JSON correctly serializes data but erroneously leaves out arrays during deserialization
My simplified code is as follows:
After serializing the
This is correct, but deserializing the
The buildings array has been lost during deserialization. This same behaviour happens with the built-in
After serializing the
Game class, I end up with:This is correct, but deserializing the
Game class from this json results in this data:The buildings array has been lost during deserialization. This same behaviour happens with the built-in
JsonSerializer.