- Home /
Save via XML or JSON for mobile game
I'm trying to develope a game for Android and IOS. Next step is to save data, so it is available in the next session. Also I would the data to be human-readable, cause we not only use it for saving, but also for managing text in different languages. So Binary files are not an useful option.
I thought about using JSON or XML. I know the general pros and cons of both. But there is the problem: I know that XML is not very good from a performance point of view, but most JSON libaries which are good in this aspect have problems with IOS because of AOT. So the only option for JSON I found was FullSerializer. For Unity and XML I didn't find much information.
So I would like to ask, what you would recommend and which library you prefer?
Answer by Legend_Bacon · Nov 14, 2017 at 06:30 PM
Hello there,
I personally use Simple JSON, and have never had a problem with it. It is free and pretty powerful. If your data is light and simple, JSONUtility is also an option as Tourist mentioned.
Hope that helps!
~LegendBacon
Answer by Tourist · Nov 14, 2017 at 04:22 PM
Have you tried : https://docs.unity3d.com/ScriptReference/JsonUtility.html?
Your answer
![](https://koobas.hobune.stream/wayback/20220612142837im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
.xml .csv .txt .json which one can be load and save on Android ? 0 Answers
How access asset files in android/ios 0 Answers
Project feasibility 1 Answer
StreamReader can't read Android internal storage path 0 Answers
Saving data 1 Answer