Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSwitch to Unity's native JSON parser #6
Labels
Comments
|
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 :) |
|
Voted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Currently, a third-party library (Json.Net.Unity3D) is used to de-/serialize JSON data, since Unity’s built-in one doesn’t support nullable types (and they’re heavily used in the data API to represent properties not included to a request/response). While the library itself works fine, it doesn't support .NET 2.0 subset profile and the performance is not that good compared to the Unity's JsonUtility. Maybe someone has an idea how to make nullable types work with the Unity’s JSON tool without complicating code base too much?