- Home /
Question by
hellojbb1234 · Apr 02, 2017 at 10:04 AM ·
jsonwrite datareading
How do you read and write a JSON file on android
I have a database made and I have trouble with reading and writing to it when I build the game for android it says it can't find the certain parts of the path. Here is the code to read it
string jsn = File.ReadAllText(Application.dataPath + "/ItemDataBase_TicTacToe/Items.json");
Debug.Log(jsn);
itemData = JsonMapper.ToObject(jsn);
Debug.Log(Application.persistentDataPath);
Debug.Log(Application.dataPath + "Data pahth");
ConstructItemDatabase();
Comment
Your answer
Follow this Question
Related Questions
Write data using SimpleJSON? 0 Answers
Unity & postgresql - Foreing letters 0 Answers
C# Convert json arrays to unity arrys 3 Answers