I have a JSON to declare as a ressource in my project, I used this trick by Mlafefon here which in short is like this:
You create a sprite with an image on the same folder you have you JSON, name your object JSON or something. You save and quit.
Then you open the .json of your PROJECT with notepad or any text editor, go to the resource section and replace your image info with that:
It works fine, but it’s quite ugly, inside your project you have some ugly ununderstood objects.
Good thing is you can access your JSON with a network request set to host:"" and protocol: “data.json”
I saw here and there some ideas with other methods but it’s often very vague and as a beginner, I don’t know how to do it.
Do you have a better idea?