JSON format
Serialization & Deserialization
Writing a Save File in JSON format
JSON format
JSON (JavaScript Object Notation) serves as a structured data format used within Unity for purposes such as serialization, data interchange, and storage. It is a light and open standard file format which uses human-readable text to store and transfer data objects attribute-value pairs and arrays. It also facilitates the representation of game-related information, configuration settings, and player profiles in a readable and transferable format.
Unity provides APIs such as JsonUtility or liberaries like Newtonsoft.Json for handling JSON data. JsonUtility is a built -in Unity class that assists in serializing and deserializing JSON data to and from C# objects, making it easier to work with JSON in Unity projects.