here is my issue. In my script I have a Json store in a variable. I Would like to store the json in a local file. (it will be a database like, i do this because i would like a standalone and easy to use website without too much component.)
Now, i have this
var data = [{
"id": 1,
"oeuvre": "choppe",
"type": "Objet d'art",
"artist": "Etienne",
"sheet": "<a href=\"desc.html\">fiche</a>",
"dt": "01/01/2019"
}, {
"id": 2,
"oeuvre": "montre",
"type": "Orfèvrerie",
"artist": "Etienne",
"sheet": "<a href=\"desc.html\">fiche</a>",
"dt": "01/01/2019"
}]
I would like something like this :
var data = $.getJSON("json/data1.json")
but it seems it doesn't find the file...
Someone have an idea ?
Thanks in advance
Best regards