0
JSON TO JavaScript
so how do i exactly get data from a local json file // below is the json example [ { "views": 0 } ]
1 Answer
+ 5
let obj = JSON.parse(yourJsonString)
You should definitely learn how to google basic stuff. You literally get the answer by googling "JavaScript JSON". No matter which search result on the first page you click, they all answer your question.