Hello, recently i’ve been working on an app in witch i’ll use Json files access my sql database.
I’m programing everyhink on C#, and using LitJson Plugin for Json files.
The code i need to fix is supposed to Write a Json file, then read it, but i think i micht be doing something wrong with the file directory of android…
i’m using:
File.WriteAllText(Application.persistentDataPath + "/StreamingAssets/campoos.json", "[" + CamposData.ToString() + "]"); // To write my Json file
CamposData = JsonMapper.ToObject(File.ReadAllText(Application.persistentDataPath + "/StreamingAssets/campoos.json")); // To read my Json file
The code was supposed to display some info of the Json file on screen. however, when on PC it works, but at Android devices i won’t.