How to make and load personnal JSON file

Hi,
I wanted to work with my own json data file, but it did not finish loading … :confused:

the html page

thanks

Your “data.json”'s URI misses CORS headers, so it can’t be fetched by regular means: :pleading_face:
http://Maxence.Larrieu.free.fr/urua/data.json

Read about CORS at this link below: :face_with_monocle:

Also, it seems like “data.json” misses double quotes on some of its values: :cold_sweat:

SyntaxError: “JSON.parse: expected double-quoted property name at line 9 column 3 of the JSON data”

{
	"ur": [
		{	"name" : "Granem",
			"type":"UMR",
			"pole":"SHS",
			"effectif":38, 
			"publis":100,
			"publisOa": 40,
		},
		{
			"name" : "Granem",
			"type":"EA",
			"pole":"Santé",
			"effectif":15,
			"publis":72,
			"publisOa":50,

		}
	]
}
2 Likes