We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I need to read (and write in the future) a list of names and infos that will congregate into many array of objects, and to make it easyer to store and organize this infos I would like to save it to a JSON file;The problem is that using P5.js, every attempt to read such files results in a "Array[ ]" response from the browser consolle. I tryed to debug the example page at p5.js reference and it gives the same result, an empty array. Trying to load a local file gives this errors: "syntax error file.json:1:1" "not well formatted file.json:1:1" and printing it gives an empty array. This files should be well written as I copyed them from online examples unless thwy all where missing some part of the file(something that's well possible as I don't know the structure of the file, while knowing the object properties". Also, saving the same files as a variable inside the sketch gives no problem, but in fact I need it as external file.
EDIT: I have the same problem with loadStrings, and I only tryed in locale with firefox developer ed