Can't get json string

Hello,
I created a json file in my glitch project and when I try to get the two information with snekfetch, nothing is happening

Can someone help me pls

1 Like

Hello, we are going to need some code to assist you.

Hi Pasxal and welcome,

I think your Glitch project needs some more setup in order to serve the data.json file.

(other readers, you can see the code at https://glitch.com/~sixth-standing-grouse as the project is public)

Two approaches:

  1. Static site: remix hello-webpage, add your data.json file, and see if you can access that… not sure if this will work, but try it.
  2. Express site: remix hello-express and put data.json in the /public folder. The public folder is configured to expose its files at the root URL of the site (e.g. myproject.glitch.me/data.json

Hope it helps