Pass a JSON file on a WebGL project via Javascript to unity

i’m trying to pass a JSON file to a webgl project but isn’t working. I Tried using the SendMessage method to send the text of the json file directly but doesn’t work because of the size of the file (~40mb)… and I tried using paths from c# scripts inside of the project… but the path doesn’t work because of the restrictions of JavaScript or server reasons or protocols (i’m not good with web programming).

You could use Unity’s WWW class to get a file from a URL, then use its property WWW.text which would (I assume) contain the JSON string data. I have not tested this.