# How to make and load personnal JSON file

**URL:** <https://discourse.processing.org/t/how-to-make-and-load-personnal-json-file/4191>\
**Category:** Coding Questions\
**Created:** [October 6, 2018, 5:16pm UTC](https://discourse.processing.org/t/how-to-make-and-load-personnal-json-file/4191 "2018-10-06T17:16:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mloiz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mloiz/32/11462_2.png) [@mloiz](https://discourse.processing.org/u/mloiz)\
**Post date:** [October 6, 2018, 5:16pm UTC](https://discourse.processing.org/t/how-to-make-and-load-personnal-json-file/4191/1 "2018-10-06T17:16:48Z")

</div>

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

[the html page](http://maxence.larrieu.free.fr/urua/)

thanks

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [October 6, 2018, 6:02pm UTC](https://discourse.processing.org/t/how-to-make-and-load-personnal-json-file/4191/2 "2018-10-06T18:02:07Z")

</div>

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

Read about CORS at this link below: 🧐

> **[Cross-Origin Resource Sharing (CORS) - HTTP | MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)**
>
> Cross-Origin Resource Sharing (CORS) is an HTTP-header based mechanism that allows a server to indicate any origins (domain, scheme, or port) other than its own from which a browser should permit loading resources. CORS also relies on a mechanism by...

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

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

```json
{
	"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,

		}
	]
}

```
