I have saved a JSON file in my local system and created a Javascript file in order to read the JSON file and print data out, for instance. Here is the JSON file:
[
{"Titel":"a",
"Timestamp":"2017-05-18 22:11",
"Text":"a",
"img":"a.jpg",
"FullText":"a"
},
{"Titel":"b",
"Timestamp":"2017-08-08 22:11",
"Text":"b",
"img":"b.jpg",
"FullText":"b" }]
Lets say this is the path where it takes you to the JSON file:
../news_data.json
Could anyone please help me with writing a simple piece of codes to read the JSON file and print the data inside it in Javascript. I am very new to Javascript and need something simple to start with. Your assistance would be very much appreciated.