#First time working with JSON - not working

1 messages · Page 1 of 1 (latest)

balmy skiff
#

If that json file is on the server? Then its server issue and you will need to change some settings accordingly google "cors issues <your_server>" example django

#

Also when you are fetching the file, you need to give a server address like localhost or 127.0.0.1:8000

strong hare
#

What is a server?

ivory arrow
#

You can't fetch a file from disk

#

If you use fetch, it needs to be to an http server

strong hare
#

So, I should not be using fetch but xml, get?

ivory arrow
#

Are you going to eventually deploy this to the internet?

strong hare
strong hare
ivory arrow
#

What are you trying to do?

#

It sounds like you might need to slow down and cover some internet basics

strong hare
#

I have given images above, I am trying to get the information from the json file into the javascript and jsx

ivory arrow
#

ok, good luck

strong hare
strong hare
strong hare