JsonUtility
static class in UnityEngine · UnityEngine.JSONSerializeModule
In Tassix
Unity's JsonUtility: JSON of the fields Unity serializes (public or [SerializeField], in declaration order, base class first), written as Unity's RapidJSON writer does. Floats are widened to double and printed shortest round-trip, with ".0" on whole numbers and "e-7" exponents; a char is a number; null strings, arrays and nested classes read as empty or default ones; Unity objects are {"instanceID": n}. Reading merges into nested values, replaces arrays and lists, and ignores unknown fields.
Methods 3
static T FromJson<T>(string? json)static object? FromJson(string? json, Type type)static void FromJsonOverwrite(string? json, object objectToOverwrite)static string ToJson(object? obj)static string ToJson(object? obj, bool prettyPrint)Checked against Unity
Conformance scenarios that exercise it, recorded in Unity and compared event by event.