Search Feedback

152
votes

Add support for Nullable Types to JsonUtility

Scripting

-

-

Unity’s JsonUtility (docs.unity3d.com/ScriptReference/JsonUtility) doesn’t support the additional null value of the serialized Nullable Types (docs.microsoft.com/en-us/dotnet/csharp/programming-guide/nullable-types).

The ability to assign null to numeric and Boolean types is especially useful when dealing with databases and other data types that contain elements that may not be assigned a value. For example, a Boolean field in a database can store the values true or false, or it may be undefined.

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(10256)

2D

(267)

Ads

(51)

AI & Navigation

(78)

Analytics

(121)

Animation

(380)

Asset Store

(297)

Asset Store Publisher

(7)

Assets

(524)

Audio

(174)

Cloud Build

(135)

Collaborate

(48)

Docs & Tutorials

(233)

Editor

(2374)

Everyplay

(13)

Game Performance Reporting

(16)

General

(920)

Graphics

(848)

GUI

(413)

Input

(160)

Licensing

(86)

Networking

(181)

Physics

(373)

Platforms

(434)

Profiling & Optimization

(78)

Runtime

(176)

Scripting

(1135)

Terrain

(167)

WebGL

(140)