I tried to import a json file into my html table. But right now it is not working. I am not sure if the path is right written like that. Or what i am doing wrong. I really hope that someone cane help me.
My JSON file:
{
"_id": "",
"_rev": "",
"geometry": {
"coordinates": [],
"type": ""
},
"type": "Feature",
"properties": {
"editor": "",
"OS_Version": "",
"Make_and_M": "",
"title": "",
"Name": "",
"Species_Id": "",
"timestamp": ""
}
}
MY HTML Code:
$(function() {
var people = [];
$.getJSON('\\Users\\betzenben\\Dropbox\\Website\\test.json', function(json) {
$.each(json.properties, function(i, f) {
var tblRow = "<tr>" + "<td>" + f.title + "</td>" + "<td>" + f.Name + "</td>" + "<td>" + f.Species_Id + "</td>" + "<td>" + f.timestamp + "</td>" + "</tr>";
$(tblRow).appendTo("#userdata tbody");
});
});
});