I am trying to get data from a JSON file into an angular app, the thing is I will be using this file as a local database and it will contain more than one array so I have to name the array but when I try to define it the vs points it out as an error.
Here's the array
var historybooks = [
{
"name" : "book1",
"id" : "his-1",
"author" : "omar",
"discription" : "lorem ipsum dolor ....",
"image" : "./assets/books-images/book1.png"
}
]
vs error "Expected a JSON object, array or literal."
I also tried with let instead of var and get the same error.