Where do I put JSON files to fetch?

I was trying to load a json file. Loading the file using fetch is no problem, as long as it is in the deploy folder. Would it be possible to include the a json file in somewhere in the assets or js folder and have it copied to the deploy folder when packaging? I can’t add a json file to the project assets. Wonderland says it can’t determine the format when I try to add it. As an alternative, I could create a javascript file containing the json, but having some data as a specific file might be easier to work with.

1 Like

You can create a static/ folder in your project root. Files from there are copied as-is to the deploy folder on packaging.
You can also configure the name of this folder in Views > Project Settings > extraFilesFolder.