Will JsonUtility support nullable primitive types?

I had a class with some nullable primitives: “int?”, “bool?”, etc. JsonUtility ignores those fields on deserialization (haven’t tried serializing). Any plans to support them?

if you need nullable primatives, you might have to shift over to NewtonSoft’s Json tool… which very powerful, just requires a bit more work to get it going. Do you actually want null values to be serialised? or just ignored in which case you’d just define nullables with a null value on init?

I’ve created a feedback request to add support for nullable types to JsonUtility: https://feedback.unity3d.com/suggestions/add-support-for-nullable-types-to-jsonutility

Will really appreciate any votes you can spend on this idea :slight_smile: